Reputation: 123
I know about 200 OK but what is 200 connection established?
To give some background, I am testing out XMLHTTPRequest in an old firefox browser(version 26 to be exact) and I see this as the response code. I am not able to view either the response headers or body so there definitely seems to be some issue. In newer browsers I see 200 OK and there are no issues with the response. I want to understand what this response code means so that I can debug.
In addition I would like to know if this code indicate a problem with the client or server?
Thanks for any help.
Upvotes: 0
Views: 4316
Reputation: 1
It means there is a proxy in between the client and the server. When a proxy is specified/used, the client sends a "CONNECT servername HTTP/x.x" request first to the proxy, and response from the proxy is "200 Connection Established". This indicates a tunneling connection with the server has been established. The 200 with "Connection Established" is absolutely not coming from the server, rather, coming from the proxy. And yes, the "200 OK" would/come from the actual server, if it is a valid request.
Upvotes: 0
Reputation: 42035
The status code is just "200". What follows is the "reason phrase", and it's up to the server to make one up. Note that in HTTP/2 and /3, there is no reason phrase at all.
So; just ignore it.
Upvotes: 4