Question

Here is how the packets look

HTTP/1.1 200 OK
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Thu, 18 Oct 2012 13:52:49 GMT
Server: LiteSpeed
Connection: close
X-Powered-By: PHP/5.3.10
Content-Type: text/html
Content-Length: 35 

And

HTTP/1.1 200 OK
Content-Length: 35
Content-Type: text/html
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 18 Oct 2012 14:17:13 GMT
Connection: close

The GZIP output for both is the same yet the top one which is generated with PHP works and the bottom one which is HttpListenerResponse generated doesn't with a POST request, even though you can view both in a browser. I also do not call cross domain/port.

How do I make the second request work?

Was it helpful?

Solution

Added some headers removed some headers everything started working! You need to allow access control origin or it will only work on IE.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top