Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Http.Client behind corporat proxy
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
florin  
View profile  
 More options Jun 22 2010, 8:57 am
From: florin <dur...@gmail.com>
Date: Tue, 22 Jun 2010 05:57:10 -0700 (PDT)
Local: Tues, Jun 22 2010 8:57 am
Subject: Http.Client behind corporat proxy
Hi,
I am running nodejs behind a firewall and I am trying to issue an
outbound request when a client hits a certain URL on the running
nodejs (say, to http://search.twitter.com). The problem is that I'm in
a corporate environment and there's a proxy server that facilitates
internet access. As a result, HttpClient.request times-out.
I am wondering if it is possible to configure node for proxy access.
Start-up parameters would be great (curl/wget style)...

Any ideas?
florin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Winberry  
View profile  
 More options Jun 22 2010, 3:27 pm
From: Chris Winberry <cpt.obvi...@gmail.com>
Date: Tue, 22 Jun 2010 15:27:43 -0400
Local: Tues, Jun 22 2010 3:27 pm
Subject: Re: [nodejs] Http.Client behind corporat proxy

Is it a SOCKS or HTTP proxy?

On Jun 22, 2010 3:21 PM, "florin" <dur...@gmail.com> wrote:

Hi,
I am running nodejs behind a firewall and I am trying to issue an
outbound request when a client hits a certain URL on the running
nodejs (say, to http://search.twitter.com). The problem is that I'm in
a corporate environment and there's a proxy server that facilitates
internet access. As a result, HttpClient.request times-out.
I am wondering if it is possible to configure node for proxy access.
Start-up parameters would be great (curl/wget style)...

Any ideas?
florin

--
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To post to this group, send email to nodejs@googlegroups.com.
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com <nodejs%2Bunsubscribe@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jun 23 2010, 3:25 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 23 Jun 2010 09:25:39 +0200
Local: Wed, Jun 23 2010 3:25 am
Subject: Re: [nodejs] Http.Client behind corporat proxy
Check out connect-proxy(1), it can tunnel outbound requests through
HTTP and SOCKS proxies.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
florin  
View profile  
 More options Jun 23 2010, 3:35 am
From: florin <dur...@gmail.com>
Date: Wed, 23 Jun 2010 00:35:55 -0700 (PDT)
Local: Wed, Jun 23 2010 3:35 am
Subject: Re: Http.Client behind corporat proxy
It's HTTP proxy.

On Jun 22, 9:27 pm, Chris Winberry <cpt.obvi...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
r...@tinyclouds.org  
View profile  
 More options Jun 23 2010, 3:45 am
From: r...@tinyclouds.org
Date: Wed, 23 Jun 2010 00:45:53 -0700
Local: Wed, Jun 23 2010 3:45 am
Subject: Re: [nodejs] Re: Http.Client behind corporat proxy

On Wed, Jun 23, 2010 at 12:35 AM, florin <dur...@gmail.com> wrote:
> It's HTTP proxy.

If I understand forward HTTP proxies correctly - it requires the
CONNECT method open a tunnel?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jun 23 2010, 3:51 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 23 Jun 2010 09:51:39 +0200
Local: Wed, Jun 23 2010 3:51 am
Subject: Re: [nodejs] Re: Http.Client behind corporat proxy

On Wed, Jun 23, 2010 at 09:45,  <r...@tinyclouds.org> wrote:
> If I understand forward HTTP proxies correctly - it requires the
> CONNECT method open a tunnel?

Yes, but not all HTTP proxies support it (or have it locked down, you
can use it to e.g. tunnel SSH traffic). The simplest proxy call is
something like:

GET http://search.twitter.com/ HTTP/1.0
Host: search.twitter.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
r...@tinyclouds.org  
View profile  
 More options Jun 23 2010, 4:02 am
From: r...@tinyclouds.org
Date: Wed, 23 Jun 2010 01:02:42 -0700
Local: Wed, Jun 23 2010 4:02 am
Subject: Re: [nodejs] Re: Http.Client behind corporat proxy

On Wed, Jun 23, 2010 at 12:51 AM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
> On Wed, Jun 23, 2010 at 09:45,  <r...@tinyclouds.org> wrote:
>> If I understand forward HTTP proxies correctly - it requires the
>> CONNECT method open a tunnel?

> Yes, but not all HTTP proxies support it (or have it locked down, you
> can use it to e.g. tunnel SSH traffic). The simplest proxy call is
> something like:

> GET http://search.twitter.com/ HTTP/1.0
> Host: search.twitter.com

So, the simple case should work. The tunneling, I think does not.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
florin  
View profile  
 More options Jun 24 2010, 4:03 am
From: florin <dur...@gmail.com>
Date: Thu, 24 Jun 2010 01:03:57 -0700 (PDT)
Local: Thurs, Jun 24 2010 4:03 am
Subject: Re: Http.Client behind corporat proxy
Well, that's unfortunate since it makes it hard (impossible?) to test
nodejs when you're behind corp proxies...

On Jun 23, 10:02 am, r...@tinyclouds.org wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jun 24 2010, 4:14 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Thu, 24 Jun 2010 10:14:21 +0200
Local: Thurs, Jun 24 2010 4:14 am
Subject: Re: [nodejs] Re: Http.Client behind corporat proxy

On Thu, Jun 24, 2010 at 10:03, florin <dur...@gmail.com> wrote:
> Well, that's unfortunate since it makes it hard (impossible?) to test
> nodejs when you're behind corp proxies...

Have you read up on connect-proxy?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
florin  
View profile   Translate to Translated (View Original)
 More options Jun 24 2010, 4:22 am
From: florin <dur...@gmail.com>
Date: Thu, 24 Jun 2010 01:22:20 -0700 (PDT)
Local: Thurs, Jun 24 2010 4:22 am
Subject: Re: Http.Client behind corporat proxy
connect-proxy is only for SOCKS proxies. I gave it a shot with our
corp proxy, no go.

On Jun 24, 10:14 am, Ben Noordhuis <i...@bnoordhuis.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile   Translate to Translated (View Original)
 More options Jun 24 2010, 5:47 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Thu, 24 Jun 2010 11:47:23 +0200
Local: Thurs, Jun 24 2010 5:47 am
Subject: Re: [nodejs] Re: Http.Client behind corporat proxy

On Thu, Jun 24, 2010 at 10:22, florin <dur...@gmail.com> wrote:
> connect-proxy is only for SOCKS proxies. I gave it a shot with our
> corp proxy, no go.

My copy from the Ubuntu repositories supports HTTP just fine. I'd
suggest you update yours but I think connect-proxy hasn't been updated
since 2006.

$ HTTP_PROXY_PASSWORD=password connect-proxy -H
u...@proxy.corp.com:8080 -p 1337 example.com 80

Alternatively, you could use proxychains. It's slightly more work to
set up but then you can just do:

$ proxychains /path/to/node application.js

And everything will transparently be proxied.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
florin  
View profile  
 More options Jun 25 2010, 8:11 am
From: florin <dur...@gmail.com>
Date: Fri, 25 Jun 2010 05:11:35 -0700 (PDT)
Local: Fri, Jun 25 2010 8:11 am
Subject: Re: Http.Client behind corporat proxy
proxychains did the trick, thanks Ben!!

On Jun 24, 11:47 am, Ben Noordhuis <i...@bnoordhuis.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »