proxy

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

I want to make an outgoing HTTP call from node.js, using the standard http.Client. But I cannot reach the remote server directly from my network and need to go through a proxy. How do I tell node.js to use the proxy? ...

Is there a standard Windows dialog for obtaining the proxy username and password?

Hi, I'm using WinHTTP to write an an app that needs access to the internet, and is potentially behind a proxy. Everything works (almost) out of the box is the user is on a domain, but if he or she isn't then I need a way to ask for credentials. Is there a standard way of doing that, or should I write my own dialog? Ideally I'd like som...

Python Mechanize, setting proxy for mech browser? This way isn't working

I'm trying to use a proxy with Python's mechanize automated browser library but it doesn't seem to be working. I am trying the following and checking the output and its not getting the page. I have made sure I am testing with proxies that work as I test the proxy manually in my browser first. Any advice on proper syntax is appreciated as...

Git, Behind Proxy and Keep Getting HTTP code = 417

our company provide internet access for us using proxy, but after configured http.proxy, i am keeping get HTTP code 417 After a little google, i guess it's because the libcurl that git use sent the "Expect: 100-continue" header, which the proxy(i guess a Squid) does not understand and reply with 417: Expection failed. I can not chan...

How to use bundler behind a proxy?

I get the following output from the sudo bundle install command: Fetching source index for http://rubygems.org/ Could not reach rubygems repository http://rubygems.org/ Could not find gem 'rspec-rails (>= 2.0.0.beta.22, runtime)' in any of the gem sources. I have $http_proxy set correctly and I've added gem: --http-proxy=my proxy to ~/...

sql server agent proxy account

Hi, I am trying to use proxy account for non sysadmin to grant them exec permission on xp_cmdshell. What I did is: USE [master] GO CREATE CREDENTIAL [proxyaccount] WITH IDENTITY = N'domain\user', SECRET = N'password' GO USE [master] GO CREATE CREDENTIAL [proxyaccount] WITH IDENTITY = N'domain\user', SECRET = N'password' GO USE [msdb] ...

Best practice to close WCF Clients after async calls

Hi there, Can anybody advice me the best practice for closing WCF clients after doing a async calls? Should it be within the "completed" method or should there be a different approach? /BB ...

How to configure a proxy class for an ASP.NET web service for flexible deployment to production

I inherited a web app at the Visual Studio 2003 level that placed all of its code for accessing SQL server in an ASMX web service. This web project had a web reference to the web service. I needed to bring the whole thing under source control, upgrade it to Vstudio 2008 and make a bunch of fixes and enhancements. In doing this, I came ...

Allow hop-by-hop headers in Django proxy middleware

I need to implement a HTTP proxy in Django and my Google safari led me to a project called django-webproxy. Although no longer maintained, it's quite simple. Most of the logic relies on a simple proxy Middleware class that intercepts all requests to the Django WSGI server and handles it. If the Middleware returns any data, the WSGI se...

HTML5 Websocket and ISA Proxy issue

Hi, I'm not an expert in ISA server, my issue is the following: var wsUri = "ws://192.168.1.7:8887"; websocket = new WebSocket(wsUri); these two lines work fine. But when I try to get 192.168.1.7 from the external computers I set up rule in ISA server: websocket.domain.com -> (redirect to 192.168.1.7, bridging = redirect request to H...

Apache and mod_proxy not handling HTTP 100-continue from client HTTP 417

'm building some webby magic and am using Apache to front our tomcat server, forwarding requests to tomcat on port 8080. I have an issue using Apache and mod_proxy to forward requests. It appears the client (a web application) sends an HTTP 100-continue to which Apache responds with a 417 Expectation Failed. When I take Apache out of th...

Php requests through proxy

Hi, I have local apache server, and I need to pass all requests from php script (running on my local server) through a proxy. So I need to se a proxy to apache/php. Is it doable ? Can somebody tell me how ? Thanks. ...

Tunneling Connections From a Local Host to a Server, While the Server use a proxy.pac to access the internet

I get access to part of the Internet by ssh login a server, like: ssh -D 9999 -C user@server Then set sock proxy on browser 127.0.0.1:9999 The server is behind a firewall. On the server I can access the Internet using a 'proxy.pac' file with username and password The problem is: can I ssh to the server while having the server use th...

How should I write my ssh proxy command?

I'm trying to write a utility compatible with the -oProxyCommand of openssh. I wrote a utility that is a transparent socket to an ssh connection (or anything). Though it's taken some debugging I'm fairly confident it is indeed working correctly (manual IO tests, large binary file transfers all work). OpenSSH will not work with it. I'...

How to have PHP to use Proxy Setting to connect to internet?

hi, i'm behind a proxy server that does not let direct connection to internet. all of my php applications fail to connect to internet for their update checks and etc. how can i tell PHP my Proxy Settings? ...

Using proxies with Cucumber tests?

I have some Cucumber integration tests for a gem (not a Rails app). Some of them connect to a third party which operates a web service running on port 12345 which I'll call Banana. The service whitelists certain IPs that it allows connections from, one of which is Coconut. My box, Domino, is allowed to access Coconut via ssh. [restricte...

Apache 2.2 ProxyPass with Weblogic - Can't use root

Hi all, I'm trying to configure an Apache 2.2 proxy server to point to multiple Weblogic instances. I'm doing fairly well with everything but a minor point. I can get this to work: ProxyPass /QA http://IP:PORT/ by going to http://IP:PORT/QA But I can't get this to work: ProxyPass / http://IP:PORT/ by going to http://IP:PORT/ I d...

Proxy settings in browsers

I have a couple of questions - would be happy with any tips advice for either/both of them. 1) Is there any way to set up proxy settings on browsers automatically without having to go into settings and typing the port number etc.? Ideally I would like to run a script that does this automatically. 2) Secondly, I know I can use a PAC fil...

ExtJS Grid JSON Store Proxy Error

Hi i am working on displaying a ExtJS Grid. I got everything correct except the part about proxy with in the Json store. When I try to display it throws an error. I figured out that i need to do something in the store but not sure what. the variable list data has the Json Array string. Please any help is really appreciated. thanks t...

Get access to all spring beans of a given type

Hi, I have a Spring application (Spring Batch not web application). In a test class, I want to grab access to all of my beans of a given type. I understand that in Spring you should generally use IOC and let the container inject your beans. However in this case, I want to loop through a variable number of beans that extend a given cla...