http-proxy

Do HTTP proxy servers modify request packets?

旧街凉风 提交于 2019-11-28 19:35:09
Is any request header added or modified to the HTTP request before forwarding to the server by a proxy server? If so, are the changes done to the same packets, or are the contents used to create new request packets with the modifications? Xenon There are a few different types of proxy servers. Because you've mentioned request headers, I'm going to assume that you're talking about HTTP proxy servers, which forward HTTP requests, not packets. NOTE: In the special case of HTTPS requests (TLS/SSL via CONNECT ), proxy servers will just forward the content of the TCP packets (and are unable to

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

≡放荡痞女 提交于 2019-11-28 15:42:32
I am running a virtual machine (Ubuntu 13.10) with docker (version 0.8.1, build a1598d1). I am trying to build an image with a dockerfile. First, I want to update the packages (using the code below - the proxy is obfuscated) but apt-get times out with the error: Could not resolve 'archive.ubuntu.com' . FROM ubuntu:13.10 ENV HTTP_PROXY <HTTP_PROXY> ENV HTTPS_PROXY <HTTPS_PROXY> RUN export http_proxy=$HTTP_PROXY RUN export https_proxy=$HTTPS_PROXY RUN apt-get update && apt-get upgrade I have also run the following in the host system: sudo HTTP_PROXY=http://<PROXY_DETAILS>/ docker -d & The host

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

我们两清 提交于 2019-11-28 15:06:05
I'm using one server to host multiple Node.js web apps, which are distributed across multiple domains. My current practice is to run an Express server for each app on a different port, and to run a base server that simply routes (redirects) requests to the correct port/Express server. This works, but it means that my base server is routing every single HTTP request (and by manually redirecting it), and that my users see my apps as hosted at [hostname.com]:8000. After a bit of research, I've found that I can use http-proxy for my routing needs, but I'd still like to know if there's a best

How to set up a squid Proxy with basic username and password authentication? [closed]

一笑奈何 提交于 2019-11-28 13:40:39
问题 I currently I use ip in acl, and I want to use username and password to do this. 回答1: Here's what I had to do to setup basic auth on Ubuntu 14.04 (didn't find a guide anywhere else) Basic squid conf /etc/squid3/squid.conf instead of the super bloated default config file auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwords auth_param basic realm proxy acl authenticated proxy_auth REQUIRED http_access allow authenticated # Choose the port you want. Below we set it to

How to forward to different path using netflix zuul?

只谈情不闲聊 提交于 2019-11-28 11:58:09
问题 I'm using netflix zuul embedded in a spring boot 1.5.x application. Behind zuul are some microservices. These microservices expose public endpoints under /public/** . Now i want to expose these public endpoints via zuul api gateway but stripping the "/public" out of the final api gateway url. Example (expected) from outside (request through zuul api gateway): api.yourdomain.tld/path/to/service/endpoint Zuul should forward this request to (with /public in the url): service:{port}/public/path

Using Git on Windows not working when the password contain '@' Symbol

丶灬走出姿态 提交于 2019-11-28 11:51:01
I am using following command git config --global http.proxy http://myusername:mypassword@myproxyserver:8080 Here, mypassword has '@' symbol so it is not working How can I resolve the issue Try and percent encode your special character: git config --global http.proxy http://myusername:mypa%40ssword@myproxyserver:8080 ^^^ %40=@ 来源: https://stackoverflow.com/questions/35195589/using-git-on-windows-not-working-when-the-password-contain-symbol

Sending mail through http proxy

我只是一个虾纸丫 提交于 2019-11-28 11:25:37
I'm trying to send emails from a system that connects to internet through a http proxy which is set in Internet Options. i'm using SmtpClient. Is there any way to send mails with SmtpClient through this proxy setting. Thanks I understand that you want to use the browsers default settings, i would also like an answer for that. Meanwhile, you could do it manually. MailAddress from = new MailAddress("from@mailserver.com"); MailAddress to = new MailAddress("to@mailserver.com"); MailMessage mm = new MailMessage(from, to); mm.Subject = "Subject" mm.Body = "Body"; SmtpClient client = new SmtpClient(

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

杀马特。学长 韩版系。学妹 提交于 2019-11-28 03:54:33
I'm building a WebClient library. Now I'm implementing a proxy feature, so I am making some research and I saw some code using the CONNECT method to request a URL. But checking it within my web browser, it doesn't use the CONNECT method but calls the GET method instead. So I'm confused. When I should use both methods? Anirudh Ramanathan A CONNECT request urges your proxy to establish an HTTP tunnel to the remote end-point. Usually is it used for SSL connections, though it can be used with HTTP as well (used for the purposes of proxy-chaining and tunneling) CONNECT www.google.com:443 The above

How to use vagrant in a proxy environment?

牧云@^-^@ 提交于 2019-11-28 02:48:49
My company's network is using proxy. So when I use vagrant up , it showed me a 401 permission error. How can I do some setting to use vagrant? Alejandro Moreno Install proxyconf: vagrant plugin install vagrant-proxyconf Configure your Vagrantfile: config.proxy.http = "http://yourproxy:8080" config.proxy.https = "http://yourproxy:8080" config.proxy.no_proxy = "localhost,127.0.0.1" rjdkolb If your proxy requires authentication it is better to set the environment variable rather than storing your password in the Vagrantfile. Also your Vagrantfile can be used by others easily who are not behind a

How to use vagrant in a proxy environment?

喜夏-厌秋 提交于 2019-11-27 19:13:25
问题 My company's network is using proxy. So when I use vagrant up , it showed me a 401 permission error. How can I do some setting to use vagrant? 回答1: Install proxyconf: vagrant plugin install vagrant-proxyconf Configure your Vagrantfile: config.proxy.http = "http://yourproxy:8080" config.proxy.https = "http://yourproxy:8080" config.proxy.no_proxy = "localhost,127.0.0.1" 回答2: If your proxy requires authentication it is better to set the environment variable rather than storing your password in