http-party / node-http-proxy

A full-featured http proxy for node.js
https://github.com/http-party/node-http-proxy
Other
13.93k stars 1.97k forks source link

when i send post proxy hasn't work. #1317

Open heavenlian opened 5 years ago

heavenlian commented 5 years ago

axios post : borwer: requerset header show this info: Provisional headers are shown

amitguptagwl commented 5 years ago

When I'm using this library to post HTTPS requests I get this error Error: getaddrinfo ENOTFOUND https://oauth2.googleapis.com/token https://oauth2.googleapis.com/token:443. It looks like somewhere wrong method is used.

heavenlian commented 5 years ago

@amitguptagwl , Get is OK, but Post .

ThibautBellamy commented 5 years ago

@heavenlian

app.use(bodyParser.json()); comment this !

code2nguyen commented 5 years ago

@heavenlian You should see this example when you have bodyParser....https://github.com/nodejitsu/node-http-proxy/blob/master/examples/middleware/bodyDecoder-middleware.js