[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Example of using HTTPAPI for post only



hi Glenda,

> I'm new to using HTTPAPI. Do you have any examples of sending
> information to a web service without requiring a return?

Under the covers, the HTTP POST method always does both a send and a 
receive as part of it's operation.  That's just the way POST works. 
/However/, it's possible for the length of data in either the send or 
receive to be 0.

So if you wanted to do "send without any return," you'd send data, and 
then you'd go through the motions of receiving data, but the length of 
the data received would be 0.

With that in mind, there's really no difference between the code to send 
and get a response, or the code to send and get nothing back!  You just 
call http_url_post() and if there's nothing returned, the file you 
receive will be 0 bytes long.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------