You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use the following code snippet to fetch the page, but an empty string was responded.
const{ client }=require('request-compose');client({url: 'https://google.com',proxy: process.env.https_proxy,}).then(({ res, body })=>{// body is ''console.log('body:',body);}).catch((err)=>{console.log(err);});
$ export https_proxy=http://127.0.0.1:8888
$ curl https://google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>
$ node .
body:
The text was updated successfully, but these errors were encountered:
larvata
changed the title
proxy setting not works
HTTPS request failed with proxy
Apr 6, 2020
I'd like to use the following code snippet to fetch the page, but an empty string was responded.
The text was updated successfully, but these errors were encountered: