Forum C# Web.Post & HTTPHeader

Web.Post & HTTPHeader

Postby dreamora » October 23rd, 2012, 8:00 pm

I wanted to check on how to specify HTTP headers with the Web.Post
With System.Net.HTTPRequests not being available I'm sure that there is a way to specify the headers, I just don't seem to be able to find out how in detail with the singular Dictionary<string,string>


We are in need of it to use it to fire of iOS and Android push notifications through UrbanAirships POST API and require to specify content-type as well as authorization and trying to push them into the dictionary with the actual json payload being pushed in through another entry in the dictionary but so far it failed to get authorized upon the post request, yielding 401 responses
dreamora
 
Posts: 225
Joined: March 2nd, 2012, 9:58 am

Re: Web.Post & HTTPHeader

Postby deadbug » October 24th, 2012, 9:20 am

Also if not possible at the time, could we get an ETA on when this rather crucial aspect of WebRequests is going to be exposed to properly talk to 3rd party webservices?

As the printed error by the dev server clearly implies that Player.IO under the hood uses System.Net.HTTPRequests, it should not be a complex task to expose access to this aspect as well.
deadbug
 
Posts: 35
Joined: November 1st, 2011, 1:35 am

Re: Web.Post & HTTPHeader

Postby dreamora » November 6th, 2012, 8:03 pm

Can someone from the staff please finally comment on this?
dreamora
 
Posts: 225
Joined: March 2nd, 2012, 9:58 am


Return to C#