# HTTP Node: Proxy to HTTPS URI

**URL:** <https://community.n8n.io/t/http-node-proxy-to-https-uri/4098>\
**Category:** Questions\
**Created:** [January 30, 2021, 4:06pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098 "2021-01-30T16:06:34Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miquel\_Colomer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/miquel_colomer/32/18606_2.png) [@Miquel\_Colomer](https://community.n8n.io/u/Miquel_Colomer)\
**Post date:** [January 30, 2021, 4:06pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/1 "2021-01-30T16:06:34Z")

</div>

Hi,

I am trying to proxify a connection to an HTTPS URI using HTTP node.  
After defining proxy as Options inside node, and trying to do a GET request against the HTTPS URI, I get next result:

ERROR: RequestError: Error: tunneling socket could not be established, cause=Client network socket disconnected before secure TLS connection was established

Is it possible to enable this as an option when using a proxy? Or autodetection could do the trick too.

Thanks!

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 30, 2021, 4:40pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/2 "2021-01-30T16:40:33Z")

</div>

Do not understand. What option should we be adding exactly? My understanding is that it should already be working. If you add the option “Proxy”, it sets “proxy” on the request that is all. Here the documentation:  
[https://www.npmjs.com/package/request#proxies](https://www.npmjs.com/package/request#proxies)

If you see there any other option that would be helpful but is currently not exposed simply tell us. Adding it takes just a few minutes.

Additionally, can you also try to remove the “Proxy” option and set the environment variables `HTTP_PROXY` and `HTTPS_PROXY` that should as far as I know do the same.

---

<div class="post-metadata">

**Author:** ![Miquel\_Colomer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/miquel_colomer/32/18606_2.png) [@Miquel\_Colomer](https://community.n8n.io/u/Miquel_Colomer)\
**Post date:** [January 30, 2021, 4:58pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/3 "2021-01-30T16:58:56Z")

</div>

Allright. I will try with HTTPS\_PROXY env variable.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Miquel\_Colomer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/miquel_colomer/32/18606_2.png) [@Miquel\_Colomer](https://community.n8n.io/u/Miquel_Colomer)\
**Post date:** [January 30, 2021, 5:28pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/4 "2021-01-30T17:28:44Z")

</div>

I have solved it without setting up environment variables.  
Thanks Jan!

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 30, 2021, 6:17pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/5 "2021-01-30T18:17:27Z")

</div>

Can you please share how you solved it that other people that have the same problem in the future also know what to do. Thanks!

---

<div class="post-metadata">

**Author:** ![Miquel\_Colomer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/miquel_colomer/32/18606_2.png) [@Miquel\_Colomer](https://community.n8n.io/u/Miquel_Colomer)\
**Post date:** [January 30, 2021, 6:34pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/6 "2021-01-30T18:34:00Z")

</div>

It was my fault. I was pointing to an invalid proxy port ☹  
So, by default everything works ok with proxy enabled.

Thanks Jan!

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 30, 2021, 6:49pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/7 "2021-01-30T18:49:01Z")

</div>

Ah ok makes sense then. Thanks!

---

<div class="post-metadata">

**Author:** ![mumudu22](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mumudu22/32/1568_2.png) [@mumudu22](https://community.n8n.io/u/mumudu22)\
**Post date:** [March 18, 2021, 9:40am UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/8 "2021-03-18T09:40:45Z")

</div>

Hi Miquel,

Simple question but what kind of URL did you input in the proxy field ? I am trying to access dynamic URL and I don’t know how to set up the proxy.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/9/9b5dfdbb3428c2331622715436ad6fefccac27ab.png)

When I try with a simple solution like [https://www.proxysite.com/](https://www.proxysite.com/) I get an error :

> ERROR: RequestError: Error: tunneling socket could not be established, cause=Hostname/IP does not match certificate’s altnames: Host: [www.site.fr](http://www.site.fr). is not in the cert’s altnames: DNS:proxysite.com, DNS:\*.proxysite.com

Regards

---

<div class="post-metadata">

**Author:** ![Miquel\_Colomer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/miquel_colomer/32/18606_2.png) [@Miquel\_Colomer](https://community.n8n.io/u/Miquel_Colomer)\
**Post date:** [March 18, 2021, 10:11am UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/9 "2021-03-18T10:11:53Z")

</div>

Hi @mumudu22,

You need to use an http proxy with https support embedded.  
This is how we scrape things at [uProc.io](http://uProc.io).

Please, provide an URI like [http://proxyaddress](http://proxyaddress):port and use an https address in your URL property. It works like a charm.

You can found a big proxies list at:  
[https://hidemy.name/en/proxy-list/?type=s#list](https://hidemy.name/en/proxy-list/?type=s#list)  
Choose proxies with HTTP+HTTPs support in your country - or near - with high speed.

I have tried with this proxy and it works ok (probably using Squid proxy)  
[http://176.113.73.103:3128](http://176.113.73.103:3128)

Check it please!

---

<div class="post-metadata">

**Author:** ![mumudu22](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mumudu22/32/1568_2.png) [@mumudu22](https://community.n8n.io/u/mumudu22)\
**Post date:** [March 19, 2021, 2:37pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/10 "2021-03-19T14:37:18Z")

</div>

Ok thanks for both the explanations and the list !

I tried with several proxys but I always get the same error “ERROR: RequestError: Error: tunneling socket could not be established, statusCode=403”.

(I also tried a flow on n8n cloud and it’s not working, therefore it’s not because I was running n8n localy on my computer)

---

<div class="post-metadata">

**Author:** ![Miquel\_Colomer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/miquel_colomer/32/18606_2.png) [@Miquel\_Colomer](https://community.n8n.io/u/Miquel_Colomer)\
**Post date:** [March 19, 2021, 3:20pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/11 "2021-03-19T15:20:04Z")

</div>

And have you tried this one  
[http://176.113.73.103:3128/](http://176.113.73.103:3128/)  
?

It worked for me a couple of days ago.

---

<div class="post-metadata">

**Author:** ![mumudu22](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mumudu22/32/1568_2.png) [@mumudu22](https://community.n8n.io/u/mumudu22)\
**Post date:** [March 19, 2021, 4:08pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/12 "2021-03-19T16:08:17Z")

</div>

Indeed I think it’s working now !  
But I think that the browser is preventing me from accessing and asking me for a captcha validation or something like that.

I get this message on the right hand side of n8n

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/a/ab2a4de70170f0d02bcc354bf5ca70b5c5aca9ef.png)

---

<div class="post-metadata">

**Author:** ![Miquel\_Colomer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/miquel_colomer/32/18606_2.png) [@Miquel\_Colomer](https://community.n8n.io/u/Miquel_Colomer)\
**Post date:** [March 19, 2021, 4:52pm UTC](https://community.n8n.io/t/http-node-proxy-to-https-uri/4098/13 "2021-03-19T16:52:08Z")

</div>

Yes. That makes sense.  
I recommend you to try any proxy service with captcha solver.
