-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 06 February 2004 18:15, Michael Milligan wrote:
> This one's got me stuck at the moment. I need to post form data from
> visitors to my site to a client's server. Unfortunately, the client's
> program only offers the bleakest of thank you pages and-- this is
> important -- also returns some embedded XML in it that my script needs
> to see to know if the data was accepted.
>
> I saw a Zend article sometime back
> (http://zend.com/zend/spotlight/mimocsumissions.php) on how to "Mimic
> form submissions in PHP". It works fine when I direct data to PHP pages
> on my server -- it accepts the data and returns via the HTTP response
> whatever data it would normally send to a browser. But when I send it to
> my client's server it just sits there until it finally times out. It's
> an .aspx script, but I don't see what difference that would make if
> everything is moving back and forth in HTTP protocol and it works fine
> when I submit the same data through a browser.
>
> Does anyone have any suggestions or know of any alternative PHP scripts
> I might use.

It sounds to me like perhaps your script is making a HTTP/1.1 request, so 
your client's server is returning the response using chunked 
transfer-encoding - unless your script deals with the encoding correctly, 
it can hang waiting for an EOF until the remote server times out + closes 
the connection.

I have a function I've written to perform post requests easily, it may help 
you - I can send it to you if you want it. 

You should be able to solve your problem either by using HTTP/1.0, or 
including a "Connection: Close" header in the request.

Cheers

Dave P


- -- 
David Precious
[EMAIL PROTECTED]
http://www.preshweb.co.uk

WindowError 002: No error...... Yet




All emails PGP signed - PGP key at:
http://www.preshweb.co.uk/aboutme/keys.php

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAI/T/n5YXkShpEpcRAuxHAKDHkhjahFlpIH8vy5qPozf8ETOvjQCfVej3
OqulSe5pgoE4NgLOO6Cr3As=
=qta+
-----END PGP SIGNATURE-----

____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to