Thanks for your reply but it seems this proxy it's only http proxy. I read that Socks5 proxy are not directly provided by PHP but implementable with some libraries. So a modification of the PHPCrawl is needed to implement socks5 proxy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This don't run for me, i have curl 7.47 but if i try this into my code raise me this error : Unable to connect to proxy 'socks5://127.0.0.1' on port '1080'.
Last edit: Anonymous 2017-07-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The crawler don't use curl, the function setProxy recall this function: stream_socket_client($this->proxy["proxy_host"].":".$this->proxy["proxy_port"], $error_code, $error_str,$this->socketConnectTimeout, STREAM_CLIENT_CONNECT);
i try to exec this with socks5 but the error is: “unable to connect to socks5://127.0.0.1:1080 (Unable to find the socket transport "socks5" - did you forget to enable it when you configured PHP?)”
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Hi! I see it's possible to use a proxy, but.. my proxy works through socks5, it's possible to implement or use it ? thanks!! :)
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Is it possible?
http://phpcrawl.cuab.de/classreferences/PHPCrawler/method_detail_tpl_method_setProxy.htm
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Thanks for your reply but it seems this proxy it's only http proxy. I read that Socks5 proxy are not directly provided by PHP but implementable with some libraries. So a modification of the PHPCrawl is needed to implement socks5 proxy
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
since cURL 7.21.7, you can use CURLOPT_PROXY and specify the SOCKS protocol:
$crawler->setProxy("socks5://x.x.x.x", 1080);
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Thanks a lot!
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
This don't run for me, i have curl 7.47 but if i try this into my code raise me this error : Unable to connect to proxy 'socks5://127.0.0.1' on port '1080'.
Last edit: Anonymous 2017-07-12
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
The crawler don't use curl, the function setProxy recall this function: stream_socket_client($this->proxy["proxy_host"].":".$this->proxy["proxy_port"], $error_code, $error_str,$this->socketConnectTimeout, STREAM_CLIENT_CONNECT);
i try to exec this with socks5 but the error is: “unable to connect to socks5://127.0.0.1:1080 (Unable to find the socket transport "socks5" - did you forget to enable it when you configured PHP?)”
Have you tried hitting the proxy outside of phpcrawl?
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
yes in this way i can hit the proxy but how can i pass it to the crawler?