This project is read-only.

Custom Format Header

Topics: Web Api
Mar 1, 2012 at 6:51 PM

I created my own DelegatingHandler for passing the required HTTP headers to the PayPal API. PayPal requires (amongst others) the following headers:


I see that I could make the JsonMediaTypeFormatter by way of the AddRequestHeaderMapping add one or more of these to the header. Should I, and if so, how? Thanks!

Mar 1, 2012 at 6:55 PM

Hey man, it looks like you may have just gotten started with WebApi, not sure. But like 90% of the community has left to another board. You probably won't get any replys from authors here either. WebApi is now in beta and they use the MSDN forums now instead of these.

I have no idea, from your description, of what you're trying to do. I use custom headers with my code, to enable cors, but I have no idea what you are saying.


Sounds like you are using the HttpClient to contact paypal's api for some reason, when I am almost positive they have a WSDL.

Mar 1, 2012 at 7:17 PM

Thanks for the heads up. I'll look over at the MSDN forums.

Mar 1, 2012 at 7:18 PM

Mar 1, 2012 at 7:25 PM

The new forums are actually on the site here:

Daniel Roth