Bought Alfred Powerpack, but could not use Alfredtweet plugin tweet.
I use ssh-d to turn over the wall, no VPN.
I looked at the source code of the plugin, I would like to use the PHP Curl module SOCKS5 to go over the wall. In theory the scheme is feasible, but it has been uncertain.
My approach is to:
1): ssh-qtfnn-d 7070 username@host 2): curl_setopt ($ci, Curlopt_httpproxytunnel, TRUE); curl_setopt ($ci, Curlopt_proxy, ' 127.0.0.1:7070 '); curl_setopt ($ci, Curlopt_proxytype, CURLPROXY_SOCKS5); curl_setopt ($ci, Curlopt_url, $url); $response = curl_exec ($CI);
Is it OK to write like this? Why can't I keep it up?
Reply content:
Bought Alfred Powerpack, but could not use Alfredtweet plugin tweet.
I use ssh-d to turn over the wall, no VPN.
I looked at the source code of the plugin, I would like to use the PHP Curl module SOCKS5 to go over the wall. In theory the scheme is feasible, but it has been uncertain.
My approach is to:
1): ssh-qtfnn-d 7070 username@host 2): curl_setopt ($ci, Curlopt_httpproxytunnel, TRUE); curl_setopt ($ci, Curlopt_proxy, ' 127.0.0.1:7070 '); curl_setopt ($ci, Curlopt_proxytype, CURLPROXY_SOCKS5); curl_setopt ($ci, Curlopt_url, $url); $response = curl_exec ($CI);
Is it OK to write like this? Why can't I keep it up?
ssh-cfng-d 127.0.0.1:7070 Username@host
Curl_error See what the error message is.
$response = Curl_exe ($ch); $error = Curl_error ($ch); Curl_close ($ch); Var_dump ($error);
* About-to-connect () to proxy 127.0.0.1 Port 7070 (#0) * Trying 127.0.0.1 ... * connected* Failed to receive SOCKS5 conn ECT request ack.* Closing connection #0bool (FALSE)