On Mon, Dec 23, 2013 at 05:30:44PM -0200, Martin Fabichak wrote: > Hello all! > > I'm doing a simple example using polipo with tor and it's working fine on > my firefox browser. I've set polipo as the proxy and the browser works just > fine. > > Then I tried doing a simple request in node.js based on a simple example, > and it didn't work. (code at the end of email). > If I try doing the request to http://check.torproject.org, it works fine. > But If I do the request to https://, the following error occurs: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " > http://www.w3.org/TR/html4/loose.dtd"> > <html><head> > <title>Proxy error: 400 Couldn't parse URL.</title> > </head><body> > <h1>400 Couldn't parse URL</h1> > <p>The following error occurred while trying to access <strong> > https://check.torproject.org</strong>:<br><br> > <strong>400 Couldn't parse URL</strong></p> > <hr>Generated Mon, 23 Dec 2013 17:22:04 BRST by Polipo on > <em>localhost:8118</em>. > </body></html> > > The headers I'm sending: > > options: { protocol: 'http:', > slashes: true, > auth: null, > host: 'localhost:8118', > port: '8118', > hostname: 'localhost', > hash: null, > search: null, > query: null, > pathname: '/', > path: 'https://check.torproject.org', > href: 'https://check.torproject.org', > headers: > { accept: '*/*', > 'content-length': 0, > host: 'https://check.torproject.org' } } > > The weird thing is that this page works fine on firefox. I'm wondering if > I'm doing something wrong with this code, or if I simply can't do a HTTPS > request using polipo.
I think you can't do it like this. Polipo is able to tunnel SSL connections but I have no idea how to do it in node.js Richard --- Name and OpenPGP keys available from pgp key servers ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Polipo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/polipo-users
