dargod
dargod

Reputation: 332

Adding headers in WP7 WebClient

I'm using code from other c# app and I can see that in WP7 doesn't support headers. How to change that code to work in WP7

client.Headers.Add(HttpRequestHeader.Authorization, header_auth);

Upvotes: 1

Views: 1023

Answers (1)

nkchandra
nkchandra

Reputation: 5557

You can add Headers in WP7 like this,

client.Headers[HttpRequestHeader.Authorization] = header_auth;

Upvotes: 5

Related Questions