How to temporarily disable git http proxy

I always set: no_proxy=.mycompany (export if I am on Unix, or a simple set on Windows) It is enough to bypass the proxy for all intranet url ending with “.mycompany“. See for an example: “Can’t update/install using composer behind a corporate firewall” “Only use a proxy for certain git urls/domains?” “Cannot do git-svn fetch behind … Read more

How should I organize multiple Express servers on the same system?

Since Express uses Connect, I’m pretty sure you can use Connect’s virtual host middleware. It operates similar to other vhost modules on other products. I don’t have multiple domains to test and show you proper code, but I would think it’s something like this: express.createServer() .use(express.vhost(‘hostname1.com’, require(‘/path/to/hostname1’).app) .use(express.vhost(‘hostname2.com’, require(‘/path/to/hostname2’).app) .listen(80) If you get to the … Read more

How does a HTTP Proxy utilize the HTTP protocol? a Proxy RFC?

The header sent to a proxy is different. For example, here is what is sent by Google Chrome to www.baidu.com via a proxy server: GET http://www.baidu.com/ HTTP/1.1 Host: www.baidu.com Proxy-Connection: keep-alive Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 DNT: 1 Accept-Encoding: gzip, deflate, sdch Accept-Language: … Read more

How to intercept all http requests including form submits

https://developer.mozilla.org/en/docs/Web/API/Service_Worker_API Service workers essentially act as proxy servers that sit between web applications, and the browser and network (when available). It takes the form of a JavaScript file that can control the web page/site it is associated with, intercepting and modifying navigation and resource requests You register a service worker in your application code from … Read more

NPM behind NTLM proxy

I solved it this way (OS: Windows XP SP3): 1. Download CNTLM installer and run it. 2. Find and fill in these fields in cntlm.ini. Do not fill in the Password field, it’s never a good idea to store unencrypted passwords in text files. Username YOUR_USERNAME Domain YOUR_DOMAIN Proxy YOUR_PROXY_IP:PORT Listen 53128 3. Open console, … Read more

How do you run `apt-get` in a dockerfile behind a proxy?

UPDATE: You have wrong capitalization of environment variables in ENV. Correct one is http_proxy. Your example should be: FROM ubuntu:13.10 ENV http_proxy <HTTP_PROXY> ENV https_proxy <HTTPS_PROXY> RUN apt-get update && apt-get upgrade or FROM centos ENV http_proxy <HTTP_PROXY> ENV https_proxy <HTTPS_PROXY> RUN yum update All variables specified in ENV are prepended to every RUN command. … Read more

When should one use CONNECT and GET HTTP methods at HTTP Proxy Server?

TL;DR a web client uses CONNECT only when it knows it talks to a proxy and the final URI begins with https://. When a browser says: CONNECT www.google.com:443 HTTP/1.1 it means: Hi proxy, please open a raw TCP connection to google; any following bytes I write, you just repeat over that connection without any interpretation. … Read more

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