Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I ask you something about CONNECT method? #293

Open
soosue opened this issue Dec 11, 2023 · 1 comment
Open

Can I ask you something about CONNECT method? #293

soosue opened this issue Dec 11, 2023 · 1 comment

Comments

@soosue
Copy link

soosue commented Dec 11, 2023

I need to using proxy server(NGINX) to request(HTTPS protocol) A server. And I implement the java code. (I'm not using this module not yet.)

I guess that when I request https protocol to proxy server, it first using CONNECT to A server.
and if its return is 200 then send real request(ex. POST).

is it right?

and another question.
If the assumption is correct, is it impossible to request server A using proxy if server A has not implemented CONNECT?

I think there will be a lot of servers that don't implement CONNECT.
What this module does is if the server doesn't implement CONNECT, does it also return 200 responses?

I would appreciate your help. :)

@chobits
Copy link
Owner

chobits commented Mar 1, 2024

I need to using proxy server(NGINX) to request(HTTPS protocol) A server. And I implement the java code. (I'm not using this module not yet.)

I guess that when I request https protocol to proxy server, it first using CONNECT to A server. and if its return is 200 then send real request(ex. POST).

is it right?

No, here is the detail of this progress, you could check it.

when you request to the first server (proxy server(NGINX) in your description), you (or your client, such as curl command) send the CONNECT request firstly, then the first server send https request to backend server (A server).

and another question. If the assumption is correct, is it impossible to request server A using proxy if server A has not implemented CONNECT?

I think there will be a lot of servers that don't implement CONNECT. What this module does is if the server doesn't implement CONNECT, does it also return 200 responses?

I would appreciate your help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants