Req #19332 [Fbk]: Add proxy type in cURL adapter

From: Date: Mon, 19 Mar 2012 21:44:51 +0000
Subject: Req #19332 [Fbk]: Add proxy type in cURL adapter
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8414@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19332&edit=1 ID: 19332 Updated by: borz_off@cs.msu.su Reported By: till at php dot net Summary: Add proxy type in cURL adapter Status: Feedback Type: Feature/Change Request Package: HTTP_Request2 Operating System: n/a PHP Version: Irrelevant Roadmap Versions: New Comment: Your suggestion is extremely valuable to me. However, the feedback I specifically asked for would be even more valuable. Previous Comments: ------------------------------------------------------------------------ [2012-03-19 19:27:41] till I can't figure out if the socket adapter (through stream_context_create()) even has the potential to support socks5 proxies. Not sure how you would build that in userland if it didn't. I'd second the CurlProxyAdapter thing as well – we could extend the curl adapter for it to work and not add more maintenance. ------------------------------------------------------------------------ [2012-03-16 15:21:56] avb Because. I won't. ------------------------------------------------------------------------ [2012-03-16 11:27:16] doconnor Out of curiosity, why are you against specialisation in certain adapters? Or would you be more comfortable with a HTTP_Request2_CurlProxyAdapter that is obviously specialised? ------------------------------------------------------------------------ [2012-03-15 15:16:02] avb Too briefly, I should say. Socket adapter does not use 'http' transport, it is a pure PHP implementation of HTTP protocol. ------------------------------------------------------------------------ [2012-03-15 11:44:39] till I briefly looked at the socket adapeter but didn't dive into it. I know that stream_context_create() supports a proxy directive: http://www.php.net/manual/en/context.http.php I'm not sure what kind of proxy this is though. It seems like it's a simple tcp transport, so it could be socks5 too but I haven't tried it. I'll try to remember when I get to work to write a test script. Till ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=19332 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19332&edit=1

« previous php.pear.bugs (#8414) next »