0

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.

2 Answers 2

4

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.

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.