C# HttpWebResponse Error 502 Bad Gateway

Posted by Sten Koning on Stack Overflow See other posts from Stack Overflow or by Sten Koning
Published on 2011-11-23T19:34:03Z Indexed on 2011/11/25 1:51 UTC
Read the original article Hit count: 679

Filed under:
|
|
|

So i'm using this class to POST on a webpage.

The server i'm trying to POST to gives me a 502 Bad Gateway error. I think it has something to do with the user agent. I've already added my firefox user agent to the request but it seems to lose it on the response.

I've tried using google and found some other articles on this like this one: Error 502 (Bad Gateway) when sending a request with HttpWebRequest over SSL

but I don't know how to fix it since im not that good at c#.

Greetings, Sten.

© Stack Overflow or respective owner

Related posts about c#

Related posts about user