git returns http error 407 from proxy after CONNECT

What worked for me is something similar to what rohitmohta is proposing ; in regular DOS command prompt (not on git bash) : first git config –global http.proxy http://username:password@proxiURL:proxiPort and in some cases also git config –global https.proxy http://username:password@proxiURL:proxiPort then git config –global http.sslVerify false (I confirm it’s necessary : if set to true getting … Read more

WebSockets and Apache proxy: how to configure mod_proxy_wstunnel?

I finally managed to do it, thanks to this topic. TODO: 1) Have Apache 2.4 installed (doesn’t work with 2.2), and do: a2enmod proxy a2enmod proxy_http a2enmod proxy_wstunnel 2) Have nodejs running on port 3001 3) Do this in the Apache config <VirtualHost *:80> ServerName example.com RewriteEngine On RewriteCond %{REQUEST_URI} ^/socket.io [NC] RewriteCond %{QUERY_STRING} transport=websocket … Read more

HTTPS connections over proxy servers

TLS/SSL (The S in HTTPS) guarantees that there are no eavesdroppers between you and the server you are contacting, i.e. no proxies. Normally, you use CONNECT to open up a TCP connection through the proxy. In this case, the proxy will not be able to cache, read, or modify any requests/responses, and therefore be rather … Read more

How to use CURL via a proxy?

Here is a working version with your bugs removed. $url=”http://dynupdate.no-ip.com/ip.php”; $proxy = ‘127.0.0.1:8888’; //$proxyauth=”user:password”; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_PROXY, $proxy); //curl_setopt($ch, CURLOPT_PROXYUSERPWD, $proxyauth); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 1); $curl_scraped_page = curl_exec($ch); curl_close($ch); echo $curl_scraped_page; I have added CURLOPT_PROXYUSERPWD in case any of your proxies require a user name and … Read more

How to create a simple proxy in C#?

I wouldn’t use HttpListener or something like that, in that way you’ll come across so many issues. Most importantly it’ll be a huge pain to support: Proxy Keep-Alives SSL won’t work (in a correct way, you’ll get popups) .NET libraries strictly follows RFCs which causes some requests to fail (even though IE, FF and any … Read more

How do I use Maven through a proxy?

For details of setting up a proxy for Maven, see the mini guide. Essentially you need to ensure the proxies section in either the global settings ([maven install]/conf/settings.xml), or user settings (${user.home}/.m2/settings.xml) is configured correctly. It is better to do this in your user settings to avoid storing the password in plain text in a … Read more

How do I make HttpURLConnection use a proxy?

Since java 1.5 you can also pass a java.net.Proxy instance to the openConnection(proxy) method: //Proxy instance, proxy ip = 10.0.0.1 with port 8080 Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(“10.0.0.1”, 8080)); conn = new URL(urlString).openConnection(proxy); If your proxy requires authentication it will give you response 407. In this case you’ll need the following code: Authenticator … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)