Asked by duncanb7
at 2024-03-01 22:38:21
Point:500 Replies:10 POST_ID:828890USER_ID:11059
Topic:
Secure Socket Layer (SSL) & HTTPS;Apache Web Server;C++ Programming Language
In last week, I have studied http proxy & get simple example C++ code from internet
& run it on cmd.exe shell and I set the proxy setting on my firefox browser to
localhost and port 8080 for the C++ proxy program. When I type http://mylinuxsite.com on Firefox, the C++ program will echo out the site header info such as follows & then it will send the header info as request to the remote server(http://mylinuxsite.com) & get the repsonse, and send back to firefox browser through the program. So far so good. The C++ code is working completely & successfully.
Now I try to do the same for https/ssl site such as https://mylinuxsite.com, the same program is just looping sending header info to the server , the https/ssl header info is different attacted as follow (from previous http site),and no HTTPS response from the server. Why ? besides https://mylinux.com, all other https/ssl site ALSO not working through my proxy C++ program BUT works without proxy
on browser.
I have checked the first words of header is "CONNECT" that is for SSL conection
but I found one setting that is "Proxy-Connection: keep-alive",what is that ?
whether I could delete it & send the https header to server again that will work ?
Any suggestion or reason Why the program can NOT work for https/SSL site access ?
Be reminded: https//mylinux.com is working on Firefox browswer WIHTOUT proxy
after testing since I have already installed openSSL on my linux server
Question-2: I've checked the http method at http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html for "CONNECT" option, If https/ssl site need to do POST form request,
how to do that to set POST method option on header with "CONNECT" method together
for https site access ?
Hope you understand what I am asking, if not please pt it out
Duncan
Firefox header info for normal http
=============================
& run it on cmd.exe shell and I set the proxy setting on my firefox browser to
localhost and port 8080 for the C++ proxy program. When I type http://mylinuxsite.com on Firefox, the C++ program will echo out the site header info such as follows & then it will send the header info as request to the remote server(http://mylinuxsite.com) & get the repsonse, and send back to firefox browser through the program. So far so good. The C++ code is working completely & successfully.
Now I try to do the same for https/ssl site such as https://mylinuxsite.com, the same program is just looping sending header info to the server , the https/ssl header info is different attacted as follow (from previous http site),and no HTTPS response from the server. Why ? besides https://mylinux.com, all other https/ssl site ALSO not working through my proxy C++ program BUT works without proxy
on browser.
I have checked the first words of header is "CONNECT" that is for SSL conection
but I found one setting that is "Proxy-Connection: keep-alive",what is that ?
whether I could delete it & send the https header to server again that will work ?
Any suggestion or reason Why the program can NOT work for https/SSL site access ?
Be reminded: https//mylinux.com is working on Firefox browswer WIHTOUT proxy
after testing since I have already installed openSSL on my linux server
Question-2: I've checked the http method at http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html for "CONNECT" option, If https/ssl site need to do POST form request,
how to do that to set POST method option on header with "CONNECT" method together
for https site access ?
Hope you understand what I am asking, if not please pt it out
Duncan
Firefox header info for normal http
=============================
Firefox header info for HTTPS/SSL
=============================