title: Request Nodejs proxy request (post)
body: <p>I am having trouble sending requests with proxies.</p>
  
  <p>This is the code I am using.</p>
  
  <pre><code> request({
      url: url,
      method: method,
      form: {
          'email': email,
                'password': password,
                'username': username,
                'first_name': firstname,
                'client_id': randstring('28'),
                'seamless_login_enabled': '1',
                'gdpr_s': '%5B0%2C2%2C0%2Cnull%5D',
                'tos_version': 'eu',
                'opt_into_one_tap': 'false',
     },
  
      proxy: proxy,
      headers: headers,
    }, (err, response, data) =&gt; {
  console.log(err || response || data)
  });
  </code></pre>
  
  <p>proxy Is defined as <code>http://ip:port</code> (eg: <a href="https://31.13.15.107:81" rel="nofollow noreferrer">https://31.13.15.107:81</a>)
  Im getting the proxies from <a href="https://www.proxy-list.download/HTTPS" rel="nofollow noreferrer">https://www.proxy-list.download/HTTPS</a>
  https proxies </p>
  
  <p>The requests don't go through and give me this error</p>
  
  <pre><code>Error: tunneling socket could not be established, cause=write EPROTO 139896935475008:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:
  
      at ClientRequest.onError (/home/ira/node_modules/tunnel-agent/index.js:177:17)
      at Object.onceWrapper (events.js:315:30)
      at emitOne (events.js:116:13)
      at ClientRequest.emit (events.js:211:7)
      at TLSSocket.socketErrorListener (_http_client.js:401:9)
      at emitOne (events.js:116:13)
      at TLSSocket.emit (events.js:211:7)
      at onwriteError (_stream_writable.js:417:12)
      at onwrite (_stream_writable.js:439:5)
      at _destroy (internal/streams/destroy.js:39:7) code: 'ECONNRESET'
  </code></pre>
  
  <p>Are ssl/https proxies supported by request or are they just bad proxies?</p>
  
  <p>Thanks,</p>