how to create a https proxy?
        Posted  
        
            by davidshen84
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by davidshen84
        
        
        
        Published on 2010-04-06T08:37:24Z
        Indexed on 
            2010/04/06
            8:43 UTC
        
        
        Read the original article
        Hit count: 244
        
hi,
i want to implement a simple ssl web proxy. i do not want to work with the network connection problems. so i think i can utilize a web server (like apache) to help me establish the connection, and my program works like a cgi app on the web server to redirect the web browser request. below is how i want to implement it:
- client make http/https requests to the target web site, and setting to use my http/https proxy;
- apache get the request, and use a rewrite rule to redirect the to my cgi app;
- my app parse the request and make request to the real web site;
- my app get the response from the real web site, then send the response back to the client;
currently, http requests seem to work. but https requests do not work at all. i tried to use curl to make a request to a https web site through my proxy, and the result is CONNECTION FAILED.
my question is, will my idea work? if yes, how to make the https requests work.
© Stack Overflow or respective owner