FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to post data without waiting for the response
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to post data without waiting for the response [message #170346 is a reply to message #170341] Fri, 29 October 2010 18:44 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 10/29/2010 1:16 PM, bingomanatee wrote:
> I have a lot of data to transmit - a lot of multi-K files that I want
> to send to a web service. I want to do so WITHOUT waiting for the
> response. BTW using a simple url, sending a raw body POST.
>
> What is the best way to send the files that is no blocking (because
> not dependent on feedback from the recipient)?
>
> Recommendations?

Use a protocol other than http.

Create your own protocol handler on the server and send the data from
the client.

Any protocol (http, ftp, etc.) will wait for a response from the server.
Even basic TCP/IP will need to wait for some acknowledgment at the
TCP/IP level (only 7 packets can be outstanding at one time), but you
won't have to wait for the protocol to acknowledge the receipt.

But I doubt you'll gain a whole lot, unless the server is very busy;
normally the acknowledgments don't take much. Probably the fastest way
is to tar/gzip all the files into one big one, ftp it to the server then
untar/gzip them at the server.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Displaying RSS Feeds With Javascript2 ...
Next Topic: linking between 2 databases (on different servers)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 04:28:26 GMT 2024

Total time taken to generate the page: 0.04885 seconds