Custom Headers when using ODATA Service
Options
I'm using an ODATA service that requires a couple of custom request headers for authentication (not the typical username / password).
Is there a way to specify custom headers from LINQPad? It would sure help speed up my development effort!
Thanks
Is there a way to specify custom headers from LINQPad? It would sure help speed up my development effort!
Thanks
Comments
-
No response from anyone on this question?
If LINQ Pad doesn't currently support adding custom headers to the outgoing ODATA request, it would be almost trivial to add it... -
In that case I suggest adding it to http://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions .
-
Are the headers that you need static?
-
Yes, there are couple of static authorization tokens that I need to send, so the ability to define an arbitrary number of name/value pairs for the headers would be great.
-
Do these headers need to be sent when querying schema information, too? Or just when querying data?
-
No, only for data queries.
-
It should be simple, then. I'll add this to the next beta build.
-
Cool! Thanks for quick response.
-
This is now done in the latest beta: www.linqpad.net/beta.aspx
-
Thanks, Joe - works like a charm! Took me a minute to find the UI for specifying the headers, but once in place, it's working great. This will be a big help to me!
-
Joe - unfortunately I need to calculate some headers on a per request basis (not static). I'm going to poke around to see how this might be done. Any thoughts?