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
As instructed by @jcrugzz I tried this against the caronte branch. Same code, same result.
Using the proxy as a straight HTTP proxy works fine for most URLs but I find I'm getting 400 Bad Request from one particular server.
This pattern of using the proxy, a standard client proxy, isn't that easy to work out from the examples. I don't want to proxy an internal server, I want to proxy requests going to outbound servers, look at the requests and either log them or potentially change them on the way through. Though I'm not doing any of this in the test stub below.
Is there something I'm doing wrong with the proxy setup? It's strange that it works everywhere else except this one server.
@shermozle you must be using the wrong branch or not the right code. You can install it with npm install "git://github.com/nodejitsu/node-http-proxy#caronte". The api is not the same so the code you have posted will not work. See the new readme
Okay done that. Now trying to make some sense of the examples. I don't see
how I can specify the destination server depending on the request. i.e.,
how to create a standard HTTP proxy, not an application reverse proxy.
@shermozlehttps://github.com/shermozle you must be using the wrong
branch or not the right code. You can install it with npm install "git://
github.com/nodejitsu/node-http-proxy#caronte". The api is not the same so
the code you have posted will not work. See the new readmehttps://github.com/nodejitsu/node-http-proxy/tree/caronte#core-concept
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/516#issuecomment-28342350
.
As instructed by @jcrugzz I tried this against the caronte branch. Same code, same result.
Using the proxy as a straight HTTP proxy works fine for most URLs but I find I'm getting 400 Bad Request from one particular server.
This pattern of using the proxy, a standard client proxy, isn't that easy to work out from the examples. I don't want to proxy an internal server, I want to proxy requests going to outbound servers, look at the requests and either log them or potentially change them on the way through. Though I'm not doing any of this in the test stub below.
Is there something I'm doing wrong with the proxy setup? It's strange that it works everywhere else except this one server.
Test stub I'm using:
Using curl I get a 500 server error:
Oddly, with Firefox I get a 400 Bad Request error:
The text was updated successfully, but these errors were encountered: