RE: [squid-users] POST method problem Tarek Nabhan (Wed Oct 17 2001 - 09:06:29 MDT)

From: Jean Risk <Jean.Risk@dont-contact.us>
Date: Tue, 13 Nov 2001 20:55:44 +0200

This looks like a problem in squid.

The way I figured it is that some sites require that the post request
and the get request are issued from the same IP.
What happens is that the get request is issued from the parent squid IP.
But squid treats the post requests differently, as they should not be
cached, so, the post (by default) is not forwarded to the parent squid.
As a result, the post request and the get requests are issued from
different IPs.

It was fixed by forcing all the requests to pass through the parent
squid by using "never_direct allow all", which is a very bad solution.
I wish this could be solved in squid.

Henrik Nordstrom (hno@squid-cache.org) also says:
Can you please try a Squid-2.5 development snapshot. The way POST/PUT is

dealt with has been completely rewritten since Squid-2.4.

Original Message ---------------------------------------
From: Tarek Nabhan ("Tarek.Nabhan@itworx.com
<mailto:Tarek.Nabhan@itworx.com?Subject=Re:%20[squid-users]%20POST%20met
hod%20problem&In-Reply-To=<A2A13DAD66B9704BA21F2812BC59DA9A082225@AppSrv
r.itworx.com>)
Date: Wed Oct 17 2001 - 09:06:29 MDT

we have a problem with the post method in squid.

Problem:
        when submitting the form below through 2 cascaded squid proxies,
the input parameters are not sent with the post method (or they are sent
incomplete or corrupt),
        and the clients are redirected to the site's default page.

Settings:
        we have two instances of squid running.
        "squid1" is used by the clients as a proxy in their brwosers
        "squid1" forwards the requests to its parent proxy "squid2"
        We are using squid-2.4STABLE-2
        the http server is using IIS 4

Description:
        When I killed "squid2", everything worked fine.
        That means when using a single proxy, the post method works
fine. But when cascading proxies, it doesn't.
        
Is it a bug in squid, or missing configuration, or some problem in the
code?

The form text is:
<form method=post
action="/utcportal/gateway/gateway.asp?GID=216&CID=0&PID=-409&URL=http%3

A%2F%2Fqusnww03%2Ecorphq%2Eutc%2Ecom%2FPTRemote%2FStock%2Fsetprefs%2Easp

" name=linksForm>
<center>
<table BORDER="0" CELLSPACING="0" CELLPADDING="2" class="gadget">
<tr class="gheader">
<td class="gheader"><b>My Stock Quotes</b></td>
<td >&nbsp;</td>
<td >&nbsp;</td>
</tr>
<tr class="gcontentsection">
<td class="gContentSection">
CSC
</td>
<td class="gContentSection">
<a
href="/utcportal/gateway/gateway.asp?GID=216&CID=0&PID=-409&URL=http%3A%

2F%2Fqusnww03%2Ecorphq%2Eutc%2Ecom%2FPTRemote%2FStock%2Fsetprefs%2Easp%3

Fdelete%3DCSC"><IMG
src="<http://209.61.159.102/imageserverUTC/del_comm.gif>" border=0></a>
</td>
<td class="gContentSection">&nbsp;
</td>
</tr>

<tr class="gcontentsection"><td ><b>Add a Ticker symbol:</b></td><td
><input size=8 name=TickerSymbol maxlength=5></td>
<td>
<a href="javascript:validate();"><IMG
src="<http://209.61.159.102/imageserverUTC/add_button.gif>"
border=0></a>
</td></tr>
<tr class="gcontentsection">
<td align="right"><a
href="javascript:window.document.linksForm.submit();"><IMG
src="<http://209.61.159.102/imageserverUTC/done_button.gif>"
border=0></a></td>
<td class="gContentSection">&nbsp;</td>
<td class="gContentSection">&nbsp;</td>
</tr>
<input type="hidden" id=Add name=Add value="">
</table>
</form>
Received on Tue Nov 13 2001 - 11:58:56 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:04:10 MST