1

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);

1 Answer 1

5

You can add Headers in WP7 like this,

client.Headers[HttpRequestHeader.Authorization] = header_auth;
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks mate. Didn't know what to do with HttpRequestHeader.Authorization at first. Now it's working well.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.