-
Notifications
You must be signed in to change notification settings - Fork 237
Running behind a squid proxy gives Bad Request #16
Comments
@appunni-dishq Do you have logging turned up to DEBUG level - for example:
That may give some clues as to why Selenium Wire is not getting through the upstream proxy. Are you able to share the configuration you're passing to the |
|
@wkeeling I did turn up DEBUG logging but didn't give much information except the status code and stuff. And Selenium-wire throws error when http or https are None, which should not be the case as many implementations including in that of request module is to override proxy to empty if passed None. Also when http proxy is used in https I get 301 always. |
format of Proxy is this http://x.x.x.x:port |
@wkeeling I think that issue was because of configuration issue. As Selenium-wire send insecure proxy request, while I was expecting insecure request. |
@appunni-dishq - OK thanks. So just to be clear, you're using a proxy configuration such as this:
So the Regarding the use of |
I did different implementations http proxy as well as https proxy. When http proxy is used I usually get 301 status code on all request. When I use https I am getting 400. Using curl proxy-insecure option was also giving me similar responses |
OK thanks. I'll see if I can reproduce the issue with a Squid server. |
I am using squid 4.4. This is the configuration . :
|
@appunni-dishq Thanks for that. I'll see if I can reproduce and report back here. |
@appunni-dishq Just an update on this. Running Selenium Wire through a local Squid 4.4 using Squid's default config file works without any problem for me with the following options:
However, using your example config file above is giving me some errors on the |
I am using chrome. Could be related to chrome's latest security updates. Can you please share the config file. I will try to replicate. @wkeeling Yes ssl-bump has issues. Not enough documentation regarding ssl-bump in latest tls implementations. Without ssl bump, I already have HAproxy which is more than good enough. As almost all requests are HTTPS. |
Chrome (Version 70.0.3538.77) also seems to work fine using the default config file and same options specified above, although it does display a message about the page not being secure. The config file is:
|
#49 I think these are related |
I am running a Squid proxy currently to do the Caching, so I need to do ssl termination. I am so using ssl-bump feature. But for some reason curl requests are going through but not Selenium-wire requests. I specified proxy according to the docs
The text was updated successfully, but these errors were encountered: