[squid-users] Re: Issue with XML requests

From: Ali Jawad <alijawad1_at_gmail.com>
Date: Mon, 25 Jan 2010 19:28:47 +0300

Without SQUID

The packet is

POST /balance2.php HTTP/1.1.
Host: xyz
content-type: application/x-www-form-urlencoded.
Connection: Keep-Alive.
content-length: 36.
.
username=sourceedge2&password=123456

With SQUID the request is:

POST /balance2.php HTTP/1.0.
Host: xyz.com.
Content-Type: application/x-www-form-urlencoded.
Content-Length: 36.
Via: 1.1 y.net:3128 (squid/2.6.STABLE5).
X-Forwarded-For: 127.0.0.1.
Cache-Control: max-age=259200.
Connection: keep-alive.

As you can see the argument line is missing and the server returns with:

HTTP/1.1 200 OK.
Date: Mon, 25 Jan 2010 18:19:38 GMT.
Server: Apache/2.2.3 (CentOS).
X-Powered-By: PHP/5.1.6.
Content-Length: 35.
Connection: close.
Content-Type: text/html; charset=UTF-8.
.
Error passing variables (AD err 01)

On Mon, Jan 25, 2010 at 6:30 PM, Ali Jawad <alijawad1_at_gmail.com> wrote:
> Hi
> We are developing an application that does send XML requests to our
> webserver. We do have a non caching SQUID server on our local network,
> when the SQUID server is in use we dont get the result back from the
> server. When we dont use the SQUID server we get the result. Although
> no  content filtering rules are are in place. If the request is done
> through a browser we get the answer
>
> This is the SQUID log for a browser
> 1264444735.732   1748 127.0.0.1 TCP_MISS/200 623 GET
> http://xyz.com/balance2.php? - DIRECT/87.236.144.25 text/xml
> This is the SQUID log for our application
> 1264444752.166  60004 127.0.0.1 TCP_MISS/000 0 POST
> http://xyz.com/balance2.php - DIRECT/87.236.144.25 -
>
>
> As for the server itself
>
> This is the log when passing through SQUID with application
> sourceIP - - [25/Jan/2010:17:17:44 +0000] "POST /balance2.php HTTP/1.0" 200 35
> This is the log when NOT passing through SQUID with application
> sourceIP - - [25/Jan/2010:17:18:55 +0000] "POST /balance2.php HTTP/1.1" 200 82
>
> Can anyone please point me in the right direction ?
>
> Regards
>
Received on Mon Jan 25 2010 - 16:29:16 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 26 2010 - 12:00:04 MST