Link to home
Start Free TrialLog in
Avatar of DaBump
DaBump

asked on

Squid Proxy 400 Bad Request with client application using Web Services

Hi There guys. Here's my problem. Our rich client java application uses web services to communicate to our web server. At one of our clients, they run a squid proxy on Linux. When a web service gets called, it seems that the squid proxy returns a error message 'Error 400 - Bad Request'. I did some digging around, and found that the squid proxy does not handle relative url's, but only absolute url's, and that's the reason for the apparent 'Error 400'. Seeing that we cannot change our application at this point, is there a way to configure squid to ignore this? Maybe some other work-around suggestion?

thanks alot,
Martin Coetzee
ASKER CERTIFIED SOLUTION
Avatar of Paracelsius
Paracelsius

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DaBump
DaBump

ASKER

Hi Paracelsius, thanks for the comment. What we ended up doing was to change the firewall rules to forward all calls to our domain straight out, instead of passing through the proxy server. This worked. I will need to make changes to our application to handle proxy servers for future problems. Thanks for the help, here's 500 points for you ;)

Cheers
Martin
Hi Martin

Thanks a lot.

Indeed instead of using an application layer gateway (squid) you can forward the packets using DNAT to the server.

Best regards,
pC