Claude Schneegans wrote:
> In my form, I have this JS code executed on submit:
> if (form.action.indexOf("method") == -1)
> form.action += (form.action.indexOf("?") > 0 ? "&" : "?") +
> "method=" + form.method;
> What it does is add a parameter in the url containing what method the
> browser thought it should use when submitting the request.
> This allows me to compare with the HTTP servers log (I have IIS 5 under
> Windows)
> And here is an example:
> 207.35.163.94, -, 21/08/2007, 11:51:14, W3SVC32, SVRPHST0502,
> 192.170.102.1, 94, 496, 431, 200, 0, GET, /collConfirme.cfm, method=post,
>
> "method=post" is the url parameter set by my function, and GET is what
> the server says the type of the request was.
>
> So there is definitely something which is changing the request from POST
> to GET, somewhere in between the browser and the HTTP server, but who?,
> what? when? why?
Most browsers change the method from POST to GET when they are
redirected with a 302 redirect. Are you doing redirects? Are those
redirects with a 302 or a 307 statuscode?
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286880
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4