Hi, I have been using Snoopy successfully to submit a
form from a PHP script. But I am now trying to submit a
second form from the same script but nothing seems to
happen. I can't find anything which says you can't do
this, but nothing I have tried works. It's as if the code is
just ignored.
I tried using a different instance name. I even tried
renaming the class (to "Snoopy2") and calling that. No
good.
I am not much of a PHP techie, so I may have made a
simple mistake, so any help is much appreciated.
Reler
Logged In: NO
I'm having the same problem.
It seems like after the first form submission,
the second form submission is not working.
I've try renaming Snoopy variable, resetting it to NULL,
nothing works.
Logged In: YES
user_id=1061129
this maybe the cause of it
Bug:
Form data is omitted by web server when submitting it
together with cookies.
Cause:
When cookies were added to Http headers, the code added
an extra empty line to the header. Web server sees this
empty line as the beginning of the content, thus skipping the
rest of the header.
Fix:
Remove "\r\n" from this line(somewhere near line 773)
$headers .= substr($cookie_headers,0,-2)."\r\n";
becomes
$headers .= substr($cookie_headers,0,-2);