FAQ Database Discussion Community


Cannot find .bowerrc file

php,ubuntu,proxy,bower
I am trying to install Learning Locker on my Ubuntu 14.04 which runs apache2 and php5, I have installed all the dependencies listed here. How ever when I run composer (actually its composer.phar, I dont know why) it shows that its downloading but bower shows ECONNRESET errors all along. So...

Can I access Hudson's plugin proxy settings from within a plugin?

java,proxy,hudson,hudson-plugins
So, I have Hudson setup locally, and I am using an open source plugin that lets me create AWS Stacks from CloudFormation using the AWS SDK. However, the plugin fails because I am on a VPN, and I need to go through a proxy server. I have configured Hudson to...

How to set up a reverse proxy in nodejs for multiple targets?

javascript,node.js,proxy,reverse-proxy
I am using nodejs, expressjs and request to create a reverse proxy. What I want is that when a request is sent to http://localhost:PORT/NAME/ that the corresponding page is loaded. For example, if I enter http://localhost:1234/google/ the google website would be loaded and if I enter http://localhost:1234/stack/ the stackoverflow page...

Request from different Country IP

python,proxy,ip
I would like to view the movie content from a different country on the Playstation store. However, the playstation store blocks the IP based on location of the request, so a movie in Canada cannot be viewed from the US: https://store.playstation.com/#!/en-ca/movies/the-house/cid=UV0130-NPVA92773_CN-0000000000236063 Is there a way to do something like the...

ENOTFOUND error with express.js (nodejs)

javascript,node.js,express,proxy,reverse-proxy
whenever I try to do some redirecting to another web page (e.g. google.com) with my nodejs express server it will fail returning the following error: throw er; // Unhandled stream error in pipe. ^ Error: getaddrinfo ENOTFOUND google.com at errnoException (dns.js:44:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26) I tried many differend...

how to create a .condarc file for Anaconda?

python-2.7,proxy,anaconda,conda
I am trying to set up a proxy server in Anaconda because my firewall does not allow me to run online commands such as conda update I see online that I should create a .condarc file that contains the proxy address. Unfortunately, I dont know how to create that file...

Deeper fetch in nHibernate returns a proxy object

c#,nhibernate,proxy
I have the following data model that i'm trying to fetch using nHibernate. Author -> List of AuthorBook -> Book AuthorBook is basically a junction table that allows the many to many mappings between Author and Book. Basically, I'm trying to come up with a query (using one session) that...

Can the HTTP method “PATCH” be safely used across proxies etc.?

http,caching,filter,proxy,http-patch
Suppose my server exposes an HTTP-based API that uses the PATCH method introduced by RFC 5789. Is it possible that clients (browsers or otherwise) behind corporate firewalls, proxies, caches, parental controls filters and the like will encounter any problems using this method? If so, how likely is this? Given that...

HTTP Proxy Servlet Error

java,maven,tomcat,servlets,proxy
Let me start off by saying this was working yesterday, so I'm totally confused as to why it stopped working all of a sudden. And Java / Plugins are really not my specialty. I'm working on an application that makes POST and GET calls to a server on another domain....

Apache2 mod_auth_form too many redirects under Location

apache,proxy,virtualhost,http-basic-authentication,mod-auth-form
I am trying to build a Proxy HTTP Authorisation page using mod_auth_form My goal is to have a single Auth page in the DocumentRoot directory, then once the user is connected, just Proxy all routes to the "real" application, running on localhost with another port. I set up my vhost...

How do I fix this nginx configuration with almost-duplicate proxied locations?

nginx,amazon-s3,proxy
I have the following nginx configuration for one of my virtual servers: upstream app_example_https { server 127.0.0.1:1340; } proxy_cache_path /Users/jaanus/dev/nginxcache levels=1:2 keys_zone=S3CACHE:10m; proxy_cache_key "$scheme$request_method$host$request_uri"; server { listen 0.0.0.0:1338; server_name localhost; ssl on; ssl_certificate /Users/jaanus/dev/devHttpsCert.pem; ssl_certificate_key /Users/jaanus/dev/devHttpsKey.pem; location = / { proxy_http_version 1.1; proxy_set_header Connection ""; proxy_set_header Host...

Connection with JSoup via proxy

java,proxy,jsoup
System.setProperty("http.proxyHost", "<proxyip>"); // set proxy server System.setProperty("http.proxyPort", "<proxyport>"); //set proxy port Document doc = Jsoup.connect("http://your.url.here").get(); // Jsoup now connects via proxy I have a script that will log in to a website by proxy. I tried to check if it works by adding a fake proxy to a specific...

WSO2 DOCTYPE not allowed calling REST Api

proxy,wso2,wso2esb,doctype
i m working with this proxy: <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="PubMedDataProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <call> <endpoint> <http method="get" uri-template="http://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi?dbfrom=omim&amp;Mdb=pubmed&amp;id=230900"/> </endpoint> </call> <log level="custom"> <property name="MyLOg"...

ZMQ: No subscription message on XPUB socket for multiple subscribers (Last Value Caching pattern)

python,sockets,proxy,zeromq,publish-subscribe
I implemented the Last Value Caching (LVC) example of ZMQ (http://zguide.zeromq.org/php:chapter5#Last-Value-Caching), but can't get a 2nd subscriber to register at the backend. The first time a subscriber comes on board, the event[0] == b'\x01' condition is met and the cached value is sent, but the second subscriber (same topic) doesn't...

HTTP CONNECT method with Android

android,http,proxy,httpclient,connect
I want to extend an existing Android app which sets up a http connection to a remote device which it sends commands to and receives values from. The feature consists of a tunneled connection via a custom proxy server that has been set up. I have the http header format...

NGINX Serve all static files and forward others to proxy without / giving 403?

node.js,nginx,proxy
I'm trying to configure an nginx server to act as a proxy to a node application. What I would like is to have any static files served by nginx and all other paths forwarded on to the Node.js application (inluding the / path). I've seen the following question/answers: How to...

I need to do a redirect on a proxied path in Nginx

nginx,proxy,url-redirection
I'm working with a poorly architected app and I have a need to proxy / and redirect it to a sub-directory (unless someone can comeup with a better solution). Here's the layout of the paths the app uses: var securePaths = [ "/someaction", "/anotheraction", "/athirdaction", "/client/interfaceishere/index.html" //path to client interface...

Can't install Composer on Ubuntu behind proxy

php,ubuntu,proxy,composer-php
I'm trying to install Composer, in order to use Laravel, but I'm behind the company proxy. The proxy is already configured in the system, so wget --proxy-user=<my_user_name> --proxy-password=<my_password> https://getcomposer.org/installer works (curl doesn't!), and I get the 270kB "installer" file. Next, I'm trying to run php installer as the manual says,...

Web Service Client - Construction Failing Due To Timeout (Proxy Issue)

java,web-services,soap,https,proxy
I have a webservice in Java 1.6 that extends javax.xml.ws.Service. The WSDL URL is located at an HTTPS endpoint and I am behind a corporate proxy (NTLM I believe). I have the proxy host, port, username, and password. I have verified that I can access the WSDL using curl if...

Powershell Proxy setting

powershell,proxy,powershell-v2.0
With this cmdlet can I check my proxy setting in powershell: $regKey="HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" $proxyServer = Get-ItemProperty -Path $regKey $proxyServer | fl *proxy* Or with this cmdlet: Get-ItemProperty Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | Select-Object *Proxy* My question is, how can I get the proxy settings for another network user?...

How to add http proxy for apachebench(ab)

proxy,apachebench
I want to grab http packets which ab sends or receives. So I add a http_proxy in shell command: $ export http_proxy=127.0.0.1:8888 Then I execute ab command: $ ab -c 1 -n 1 http://localhost/ Finally, my proxy(127.0.0.1:8888) failed to get http packets from ab. Is there any way to let...

How can I make a special URL like "http://appname/

networking,nginx,proxy,reverse-proxy
I know some applications run on companies' internal networks with URLS like "https:/statsd/", so I was wondering how to go about doing this. I was thinking maybe I would use a reverse proxy like Nginx to proxy all urls that match a particular regex to the correct server, but I...

Proxy Service with DTD

xml,proxy,wso2esb
I have created a proxy service to receive the XML from the web. Works fine for the XML with XSD but fails when have DOCTYPE declaration with DTD. I have added the parameter 'ApplicationXMLBuilder.allowDTD' but still see the errors. Any ideas? Proxy Config: <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="cx.soa.poxRouter" transports="https,http"...

Domino Xpages with Reverse Proxy

proxy,xpages,lotus-domino
I have a problem with Domino Web Server with an XPages Application which is placed behind some reverse proxy. The problem is, the proxy forwards all requests from the URL like h2tps://organization/test_server/ to the Domino Web Server. This makes all links in the application brocken. And I don't know how...

Reverse Proxy in Python using WSGI

python,proxy,wsgi,reverse-proxy
app, built with Flask. I want to have the following routing : "/" -> my Flask app "/foo/" -> Reverse proxy toward http://bar/ So far, I don't have any reverse proxy, so my application looks like : import app [...] if __name__ == '__main__': app.app.secret_key = 'XXX' app.app.run(debug=True, use_reloader=False) I...

Youtube API v3/ASP.NET/Google.Apis.YouTube.v3 - Many Questions (oauth, sample code, proxy)

asp.net,api,youtube,proxy
I work for a large educational institution and we used the YouTube api v2 for uploading YouTube videos to our corporate channel. We now have to implement v3 alongside other changes. I have a few questions: Question 1: Oauth2 With api v2 we were able to upload directly to our...

WCF Service on remote server returns 400, works fine locally

c#,wcf,rest,proxy,webhttpbinding
I made a small console application that hosts a WCF Service, this application is also the client and implements the Service. It works fine on my local machine and returns the data in JSON to the webbrowser. Im using the Chrome browser with Advanced Rest CLient, but also used a...

How do google or facebook know I'm behind a man in the middle proxy?

facebook,security,proxy,ssl-certificate,burp
Whenever I'm behind a man in the middle proxy such as burp, and try to access either google or facebook, I get an alert message telling me that the connection is not reliable and blocks the page from displaying. I'm guessing it has something to do with security certificates. But...

Proxying casperjs / phantomjs through Charles

ssl,proxy,phantomjs,casperjs,charles
I'd like to use casperjs / phantomjs to autofill some web forms. In order to debug my casperjs scripts, I'd like to use the (wonderful) Charles Web Proxy as a man-in-the-middle SSL Proxy, but haven't figured out how to make that work in casperjs / phantomjs. What works I've enabled...

Running Fiddler as HTTP to HTTPS reverse proxy

ssl,https,proxy,fiddler
I have a service running on my machine. This service is published on HTTPS and starting it on HTTP seems a bit complicated. A certain remote machine perform calls to my machine on HTTP (and this is not under my control). I want to perform some non-performance-critical tests with my...

Proxy's Response to Asynchronous Close Events

http,proxy
Let's say you have an HTTP/1.1 proxy sitting between a client and a server. If connections are persistent, there is the possibility that the server will close the connection, but the client will send a request before being notified of the closure. What is the proxy's correct response to this?...

URL resolution error using Gunicorn, Nginx, and Django

python,django,nginx,proxy,gunicorn
I have a strange error occuring only when using Gunicorn : I have a setup Nginx + a django project with the following config : location / { proxy_pass http://127.0.0.1:8080; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header SCRIPT_NAME /; } When I use the django development server...

Streaming an upload with HttpClient/MultipartEntity

java,servlets,proxy,tomcat7,apache-httpclient-4.x
I've got a Tomcat instance right now that takes uploads and does some processing work on the data. I want to replace this with a new servlet that conforms to a similar API. At first, I want this new servlet to just proxy all of the requests to the old...

Supplying credentials for a proxy server and WCF service in one call?

c#,.net,web-services,wcf,proxy
I have a C# app which is calling a WCF service via a proxy server. Both the proxy and the WCF service require (different) credentials. I am using the svcutil-generated proxy classes to access the WCF service. When I switch off the proxy server's requirement for credentials then I can...

Does proxy have to load everything completely first before sending them back?

apache,http,iis,proxy,http-proxy
I've been using proxy services, and I want to know some details behind it, regarding its speed and efficiency. Consider following scenario: There's a mp3 file on server M, a client wants to download that file, but he doesn't want to expose himself, so he decides to use a proxy...

Android Studio First Run error

android,android-studio,proxy
After trying to reinstall Android Studio, all was fine until the first run. While it was 'fetching Android SDK component information', it gave me an error saying: Unable to access Android SDK add-on list I clicked on Setup proxy, clicked on Auto-detect proxy settings, checked my connection (it said 'connection...

Proxy in html page

html,iframe,proxy
I have a webpage within which there is another webpage my code <iframe id="myiframe" src="http://bing.com" width="800" height="500"></iframe> I want to open the webpage in the iframe using an proxy ip like ip:port method is that possible Because it provides different data for different country ip i.e) Indian ip data is...

Node JS TCP Proxy: Reuse socket in callback function

node.js,networking,tcp,proxy,event-handling
I'm trying to implement a TCP proxy in Node JS. I only have some experience with Javascript so I met a lot of problems along the way. I've done a lot of searching for this one but had no luck. The problem occurs when browser sends a CONNECT request for...

Apache proxy - HTTP to HTTPS

windows,apache,proxy,reverse-proxy,mod-proxy
I work with application which comunicate with server over HTTP, but this server runs on HTTPS in my case and there is also basic authentication. There is no way to change this settings. My idea is configure proxy on Apache server and then website wil be accessible at http://localhost/ and...

Http proxy server tests [closed]

proxy,server,load-testing,stress-testing,http-proxy
I have implemented a http proxy client/server. Currently I intended to test this proxy client/server performance. Can anybody help me what approaches exists to make these tests?

Camel as an HTTP Proxy to a REST service - How to route paths and parameters?

rest,servlets,proxy,apache-camel
I am trying to use Apache Camel as an HTTP proxy to a REST service, performing some auth in the middle, and have a route which looks like this (auth removed for testing purposes): from("servlet:apiwrapper?matchOnUriPrefix=true") .to("http://HOST/BASEPATH?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"); When accessing the Camel Servlet path like so: http://CAMELHOST/apiwrapper/node http://CAMELHOST/apiwrapper/node/stuff/blah?etc=t And so on... I...

groovy httpBuilder with proxy (and auth)

groovy,proxy,httpbuilder
I'm trying to use httpBuilder to connect to a webservice using a proxy but am somehow unable to do so. I found a question which can potentially help to solve my problem (part of it at least) here: How to use HTTPBuilder behind a proxy with authentication But no valid...

PuTTY configuration equivalent to OpenSSH ProxyCommand

ssh,proxy,putty,portforwarding,tunneling
I'm just trying to use PuTTY to get an SSH connection to my servers. These servers allow incoming SSH connection only from another specific server ("MySshProxyingServer" in example below). Using Linux this is no problem with the ssh -W command. In PuTTY I can't find the options to create such...

HttpClient and using proxy - constantly getting 407

c#,.net,proxy,httpclient
Here is the code: HttpClient client = null; HttpClientHandler httpClientHandler = new HttpClientHandler() { Proxy = new WebProxy(string.Format("{0}:{1}", proxyServerSettings.Address, proxyServerSettings.Port),false), PreAuthenticate = true, UseDefaultCredentials = false, }; this.httpClientHandler.Credentials = new NetworkCredential(proxyServerSettings.UserName, proxyServerSettings.Password); this.client = new HttpClient(this.httpClientHandler); And when I finally do this: HttpResponseMessage httpResponseMessage =...

Phones or other machines not connecting [Solved]

linux,proxy,http-proxy,mitmproxy
I followed all the steps and installed mitmproxy in my virtual machine and then proceeded to test it. I opened firefox and used the IP address I got from ifconfig. {inet address} And it worked! But when I to do the same for my other laptop or phone{with the ca...

Using phantomjs print proxy it used to access website

python,proxy,phantomjs
can someone point me in the right direction. Just need some documentation. I manually input a proxy, but I think it might be by passing it. I want to test my script to see if its actually going through my proxy with phantom. It looks like I successfully went through...

Accessing Import.io API through a proxy server

php,amazon-web-services,proxy,squid,import.io
I am having issues using the import.io API. Despite my app being used and deployed in the UK it will return (for certain stores) incorrect currencies and price data due toe Import.IO's servers being deployed in the US. I spoke with the support team there who helpfully informed me that...

npm ERR! Windows_NT 6.3.9600, unable to install cordova in windows8

node.js,cordova,proxy,netbeans-8
I tried to install cordova on my windows8 machine by using the below command in command prompt npm install -g cordova but i'm not able to install because of the following error can any one help me out please. Error: npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\\node.exe" "C:\Program...

My workplace's proxy is preventing me from using Maven

java,spring,maven,spring-mvc,proxy
I work in the public sector so my workplace controls internet access pretty strictly. I've tried configuring the settings.xml file that M2Eclipse reads to no avail. It may be simple user error in my case, but I'd like to explore other options anyways just in case that it isn't. I...

Golang pass JSON object to a function

json,selenium,go,proxy
This is regarded the Selenium Web driver but I think it is not quite important. I can set the browser name caps := selenium.Capabilities{"browserName": "firefox"} wd, _ := selenium.NewRemote(caps, "") But for "proxy" ie: caps := selenium.Capabilities{"proxy": "http://1.2.3.4:999"} wd, _ := selenium.NewRemote(caps, "") I have to pass a JSON Proxy...

Unable to Download Image behind Proxy Server

java,image,url,download,proxy
I was trying to Download an image present at this URL behind a proxy server. Note that the URL does not end with .jpg or .png . If opened through the browser and the image is visible. But while using the following code i am unable to save/download it. int...

Generating a Certificate for Local HTTP/2 Proxy

firefox,proxy,ssl-certificate,http2,nghttp2
I'm trying to get Firefox nightly to use a secure HTTP/2 proxy, but it's refusing to accept a self-signed certificate. The proxy is composed of nghttp2 as the HTTP/2 front-end and a simple Twisted proxy as the back-end. The Twisted code is from https://wiki.python.org/moin/Twisted-Examples and works on its own as...

Not able to access Server-Sent-Events over Mobile 3g Network

nginx,https,proxy,server-sent-events
I am having an issue with Server Sent events. My endpoint is not available on mobile 3G network. One observation I have is that a https endpoint like the one below which is available on my mobile network. https://s-dal5-nss-32.firebaseio.com/s1.json?ns=iot-switch&sse=true But the same endpoint when proxy passed using an nginx and...

How do I create a delegating Angular multi host site?

angularjs,rest,proxy,delegation,microservices
I work in an environment where we develop a solution using several (a lot of) servers. They microservice style is the role model. To be able to upgrade systems they must be switchable/replaceable (including the user interface) in runtime. The principal solution that have been decided upon is that a...

what is “root:'data' ” extjs store config

javascript,extjs,proxy,treeview
I am very new to ExtJs and I have the following code for a treeView,,which has a default root in the beginning and then an Ajax call to a servlet .But i don't understand the 'root' field with value 'data' .Is data an alias or xType .Here is the code:...

Mitmproxy tampering GET and POST request/response in one script

python,regex,proxy,mitmproxy,inline-scripting
A POST request to a certain url(http://test.com) is like: { "messageType": "OK", "city": { "Name": "Paris", "Views": { "1231": { "id": 4234, "enableView": false }, }, "Views": [5447, 8457], "messages": [{ "id": "message_6443", "eTag": 756754338 }] }, "client": { "Id": 53, "email": "[email protected]", "firstName": "test", "lastName": "test", "id": 52352352, "uuid":...

Serving Static Content NGINX

caching,nginx,proxy
I'm new to NGINX. I don't know a lot about it yet, but I'm trying to. I'm curious what is the best way to serve the static contents from my page using NGINX. The main reason why I want to serve the static contents is that I want put less...

No head section when requesting page via YQL API

proxy,yql,head
I'm trying to get the full page via yahoo YQL API, in order to access metadata fields defined in the target page head section (specifically open graph metadata). My example URL: http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http://www.google.com%22&format=xml But it does not contain any metadata parameters...is there another way to call this Yahoo API to include...

Problems on NodeJs, GitHub and IONIC connection by proxy

node.js,github,proxy,ionic-framework
My contribution I can't download dependencies on my job I have error connection , by the proxy problems...

DocumentDB Java SDK behind a proxy

java,proxy,azure-documentdb
I'm trying to create a simple web application from the todo tutorial. As I'm behind a corporate proxy, I used the following common java system properties : -Dhttp.proxyHost=myproxy Dhttp.proxyPort=3128 -Dhttps.proxyHost=myproxy -Dhttps.proxyPort=3128 I also try the following parameter: -Djava.net.useSystemProxies=true I still have a client exception java.lang.IllegalStateException: Http client execution failed. at...

HapiJS Proxy Trouble

node.js,session,cookies,proxy,hapijs
TL;DR How do I intercept a request, ping a different route for an ID, store the ID in a session, then continue the original request (especially PUT/POST with payloads) using the ID I just got? Background I am using HapiJS (8) to proxy requests from the client to an existing...

Flask as proxy doesn't work when deployed to tornado

python,proxy,flask,tornado
I wrote a flask app as kind of a proxy, to analyse the data passing through it and provide a web page where I get the result. All seems to went well when using the default development server that comes with flask, say using: app.run() But when I tried to...

node-http-proxy proxy.on('proxyReq'…) never fires

javascript,node.js,proxy
I am using node.js proxy. It works successfully, however: proxy.on('proxyResponse', function (proxyRes, req, res) { console.log("hi"); }); Never fires even though I see in the browser my api request was proxied successfully and I successfully got my json. Why isn't the proxyResponse firing?...

Ember CLI with Multiple Proxies

proxy,ember-cli
The Problem: I have an Ember CLI Application that will consume multiple APIs, which I need to proxy to in development mode. Background: I have a legacy api which exposes services at /api running on my local development machine at localhost:3000 I have a new api which exposes services at...

Redirect Static Request Express Nodejs

javascript,node.js,express,proxy
I am making a game using websockets. I own 3 Nodejs servers: game1.website.com, game2.website.com, website.com. I want game1 and game2 to only handle game logic (websocket communication) while website.com handles all http requests. Players go to game1.website.com and connect with game1.website.com server with websocket. If players request static files (images,...

How to convert from getInputStream to DataInputStream

java,proxy
I've got a java proxy and I just need to convert from using getInputStream and start using DataInputStream. This is the code to start the stream. private Socket socket; private static OutputStream os; private InputStream is; private byte[] request = new byte[1024]; public Client(Socket clientSocket) throws IOException { socket =...

Socket.IO as a transparent proxy for PHPDaemon WebScoket

php,node.js,proxy,websocket,socket.io
I have a WebSocket server written by another person on PHPDaemon. Members there are connected, log in, and start getting messages by ws protocol. But users of older browsers and IE below 10 remain behind. And it would be greate to add something like transparent cross-browser proxy client for older...

How to configure AppJS to work with node-http-proxy server

node.js,proxy,server,appjs
I'm trying to get node-http-proxy working with AppJS. Unfortanly it crashes on launch of the app. What I did: Download & extracted AppJS from http://appjs.com/; Installed node-http-proxy with npm install http-proxy; Edited the app.js window.on(create) function: window.on('create', function(){ console.log("Window Created"); window.frame.show(); window.frame.center(); window.frame.setMenuBar(menubar); var http = require('http'), httpProxy = require('http-proxy');...

How to check Proxy headers to check anonymity?

python,http,proxy,anonymity
I'm trying to determine high anonymity proxies. Also called private/elite proxies. From a forum I've read this: High anonymity Servers don't send HTTP_X_FORWARDED_FOR, HTTP_VIA and HTTP_PROXY_CONNECTION variables. Host doesn't even know you are using proxy server and of course it doesn't know your IP address. A highly anonymous proxy will...

How to pass nginx proxy url for socket

node.js,sockets,nginx,proxy,socket.io
I am using socket in my application,i want to pass socket connection url from nginx as proxy url.I am doing it like that My socket code var socket = io.connect('/explorer/socket',{ 'reconnect': true, 'reconnection delay': 500 }); My nginx conf location /explorer/socket { proxy_pass http://xxx.xxx.xx.xxx:3000; } but it is not working,it...

Send mail with smtplib using proxy

python,email,python-3.x,proxy,smtplib
I have a very basic piece of Python code: import smtplib server = smtplib.SMTP(host, port) problems = server.sendmail(from_addr, to_addr, message) Is there solution to run it behind an HTTP proxy? I am using Python 3.4.1 on Linux with the http_proxy variable set. Now I am getting a timeout from SMTP,...

Connecting to proxy/VPN via phantomjs

proxy,phantomjs,vpn
I'm trying to connect to a VPN via phantomjs. It does not seem to work when I render a page it is blank this is the command: phantomjs --proxy-type=http --proxy=83.170.84.216 --proxy-auth=freevpnaccess.com:3071 test.js What am I doing wrong?...

Go - runtime error: invalid memory address or nil pointer dereference

http,go,proxy,panic
I am trying to use Go to make a proxy server which changes certain values in the body of a request to an API however when the request is sent the following panic occurs and the request fails: 2015/05/03 14:17:52 http: panic serving 192.168.1.139:42818: runtime error: invalid memory address or...

How to configure proxy using Squid

proxy,squid
I have a connection and I want change the connection behavior of the process to connect through that proxy. I would also like it to use a new IP in the event that it detects that it has been throttled. The new connection process that I want is : connect...

Is it possible to make two SOCKSv4a session connections over one TCP connection?

sockets,tcp,proxy,protocols,socks
I'm trying to create multiple tunnels out of a single TCP connection to a SOCKSv4a proxy server in order to keep from closing and reopening a bunch of sockets to the SOCKS proxy. Something like "Connection: keep-alive". How can I do that? Does the protocol allow it?...

Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages

apache,proxy,php-fpm,fcgi,centos7
I am sure this is a question which has been asked somewhere, if so excuse me, but googling around did not give me anything tangible. Here is my scenario: I am protecting a web directory with apache http basic auth. So I have my .htaccess in the root folder and...

Proxy awareness with pip

python,proxy,pip
I have tried to set up a python development environment at my work place to create some basic applications. I can't seem to get pip to work, for example I type in pip install numpy and get the following error message: Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by...

Is there something like the CAS Proxy ticket available in SAML?

proxy,client,single-sign-on,saml,cas
Is there something like the CAS Proxy ticket available in SAML? I want to make a request to a 3rd Service Provider with the identity of the user, like i can do with CAS Proxy ticket. So the Service Provider thinks the request comes from the user himself. Thanks in...

Persistent session in glassfish behind nginx proxy

java,session,nginx,proxy,glassfish
I am running a glassfish webserver behind a nginx proxy (which resolves domains). I want to store @SessionScoped data on the Webserver. My problem is, that nginx opens a new session everytime it connects to glassfish and that session is in no way connected to the client. The client itself...

actionHero.js Set Http Header

proxy,http-headers,actionhero
I want to know if there is a way to Set the Http.Header in actionHero.js: in our server we are working with actionHero.js and Golang I need to send on the "Header" two domain name "client domain & mine(actionHero Service)" to the Golang service. or if there is any other...

images inside gmail email not being displayed

caching,proxy,gmail
I know gmail and hotmail have introduced their own image proxies. I have sent email with simple img tag with src src="http://www.zong360office.com/assets/images/logo/product-logo.png" and gmail converts it like this src="https://ci3.googleusercontent.com/proxy/PCxvUIqBvaJWn_7H8deiQhdJD1QKV_pU5n1JhrPh3xaXMLMzcdSBYCo6-tjs69AYy858H4j5ShIRjw0UrH_VWMtCxC0zIT-Gi4j_dlQv9uRZjzGWFWA=s0-d-e1-ft#http://www.zong360office.com/assets/images/logo/product-logo.png" Original URL is the direct URL to the image. In the attached image, you can see the request...

Node http-proxy - HTTP message contains illegal headers

node.js,proxy,http-headers,node-http-proxy
Using node http-proxy module, I have no issues when proxying to a host with GET. But when I use POST and proxy to the same host, I get Status Code:400 Bad Request with HTTP message contains illegal headers. I checked out the proxyReq headers and they look good, the same...

How to add custom cookies in browsermob proxy on java

java,cookies,selenium-webdriver,proxy,browsermob
I am writing automation test and to capture the network call made in background, I am using browsermob-proxy. In browsermob-proxy, I want to set cookie before making requests. How can i do it? Below is my code:- String strFilePath = "data.har"; // start the proxy ProxyServer server = new ProxyServer(4444);...

Create proxy according URL path

javascript,node.js,proxy,supertest,node-http-proxy
I need to create proxy according to some URL which is coming from the browser, since I fairly new to this topic Im not sure how to test it...:( I need some way to test it and see that this is actually working I use this following code from this...

Bower calls blocked by corporate proxy and then I get errors when updating .bowerrc

angularjs,node.js,ssl,proxy,bower
I'm trying to install bower via npm to set up the angular seed project but am running into errors that are caused by my corporate proxy. retry Request to https://bower.herokuapp.com/packages/angular failed with ECONNRESET, retrying in 1.2s bower retry Request to https://bower.herokuapp.com/packages/angular-route failed with ECONNRESET, retrying in 1.4s bower retry Request...

Why is my real IP address still visible even when using a proxy?

python,google-chrome,selenium,proxy,selenium-chromedriver
I am trying to understand how it is that our real IP address is discovered even after going through a private exclusive (I'm the only user) high security proxy. PROXY_IP = "<private proxy IP>:<port>" options = webdriver.ChromeOptions() options.add_argument("--proxy-server=%s" % PROXY_IP) driver = webdriver.Chrome(executable_path=".\\driver\\chromedriver.exe", chrome_options=options) driver.get("http://www.stayinvisible.com/") This website displays a bunch...

How to connect to a SOCKS proxy in a java applet

java,proxy,socks
I've made a Java applet that accesses a webpage. I need it to connect to a website via a SOCKS proxy I've already tried putting this code where my program initialises: System.setProperty("socksProxyHost", "66.85.144.228"); System.setProperty("socksProxyPort", "1080"); But nothing seems to happen and it just uses my normal IP address?...

Nginx proxy everything ending with /feed

nginx,proxy
I'd like to proxy everything ending with /feed to another domain. For example I want http://example.com/blog/feed to become http://api.example2.com/blog/feed and http://example.com/blog/categories/my-category/feed to become http://api.example2.com/blog/categories/my-category/feed This is what I got so far server { listen 80; server_name example.com location ~ \feed$ { proxy_pass api.example2.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header...

Node JS TCP Proxy: Set up HTTP Tunnel using Node JS

node.js,networking,tcp,proxy,http-tunneling
I'm trying to implement a TCP proxy in Node JS. I only have some experience with Javascript so I met a lot of problems along the way. I've done a lot of searching for this one but had no luck. I want to implement a two-hop TCP connection for HTTPS...

How to specify proxy authentication credentials in Apache httpclient in addition to the target site credentials?

java,authentication,proxy,apache-httpclient-4.x
I need to connect to a remote web site via proxy using Apache httpclient. Both the proxy and the web site are using basic authentication with different logins/passwords. I have the below code that connects to the remote site via proxy. But I can't figure out how to add proxy...

How can I use and authorize an http proxy with node.js http.Client

javascript,node.js,http,proxy
I'm sending an http request over a proxy an need to add username and password to my request. How do I correctly add these values to my options block? This is my code: var http = require('http'); var options = { port: 8080, host: 'my.proxy.net', path: '/index', headers: { Host:...

How Can I Run a Local PHP Simple HTML DOM Parser with a Proxy?

php,curl,proxy,simple-html-dom,proxylocal
I have a PHP Simple HTML DOM Parser locally in MAMP that pulls information and works well with the Japan version of a website, since I'm located in Japan. However, I would like to pull information from the UK version of the site. What is the simplest way to do...

I dont know how to add Proxy to my Phantomjs script

python,proxy,phantomjs,casperjs
I've been having issues accessing websites and just realized that since the websites are controlled by my company I need to add a step in my script that shows the webpage I have my companies proxy IP or Im on their server. I hope that makes sense. For example if...

squid ssl-bump 3.5.4: error - Error negotiating SSL connection on FD 10: Success (0)

https,proxy,ssl-certificate,squid,man-in-the-middle
I am trying to install squid 3.5.4 (on docker, running debian 8) and run it in ssl-bump mode. Compilation: ./configure --prefix=/opt/squid --srcdir=. --disable-maintainer-mode \ --disable-dependency-tracking --disable-silent-rules --enable-inline\ --disable-arch-native --enable-async-io=8 \ --enable-storeio=ufs,aufs,diskd,rock \ --enable-removal-policies=lru,heap --enable-delay-pools \ --enable-cache-digests --enable-icap-client \ --enable-follow-x-forwarded-for \...

Nginx proxy_pass doesn't work on port 80

node.js,nginx,meteor,proxy
I am using a DigitalOcean VPS hosting a meteor app. I don't have a domain name yet, so just use the plain IP address. When I set below config and use myipaddress:3000 and myipaddress:8080, both of them worked well; but if I change the 8080 to 80, only myipaddress:3000 works....

how do you download files via ant though proxy [duplicate]

java,maven,ant,proxy
This question already has an answer here: Ant GET task and proxy 1 answer I am using ant which uses an build.xml file. This is the command: java version : 1.8.0 ant version: 1.7.1 CLASSPATH=/app/hbase-0.94.27/lib/hadoop-core-1.0.4.jar CFLAGS=-m64 CXXFLAGS=-m64 ant compile-native tar it hangs here: Buildfile: build.xml ivy-download: [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar...

HTTP to HTTPS mapping using proxy servers

apache,ssl,https,proxy,squid
I have a java application which is trying to call a HTTPS endpoint which is setup in my internal network. Also this request go through a corporate proxy. Having said that, I don't want to implement a HTTPS client at my application level. Instead I will just trigger a plain...

How can I alter a Chocolatey package's $url for install

powershell,proxy,http-proxy,chocolatey
TLDR version: I need to be able to append to the end of the URL that a chocolatey package specifies for its download source. I'm trying to use Chocolatey to install the Android-SDK package and am having an issue with my filtering proxy (the functionality and provision of which, I...

Eclipse Luna Not Storing Proxy Authentication Username and Password

eclipse,authentication,proxy
I'm trying to get Eclipse Luna (on Debian 8) to connect to the Internet via a WiFi proxy that requires authentication. I am able to set the proxy host, port, username and password after which I apply the settings and close the dialog. The next time I open it, it...

how to send traffic from mitmproxy to another proxy server

proxy,fiddler,mitmproxy
I have a need to redirect mitmproxy to another proxy server. Let say an example. Browser -> mitmproxy -> fiddler Browser proxy was set to 8089 mitmproxy is running on 8089 fiddler listening on 8090 now how can i do proxy forward mitmproxy using -F i tried mitmproxy -p 8089...