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

Re: Example of using HTTPAPI for post only



On 16-Jun-09, at 2:43 PM, Scott Klement wrote:

> hi Jon,
>
>> Shouldn't one at least check the response to make sure it doesn't say
>> "What the heck was that you sent?" or equivalent wording ;-)
>
> Even if no data is received, you'd still know whether it succeeded or
> failed based on the return value from the http_url_post() routine.  It
> would return 1 if successful, or another number if it failed.
>
> For example, if it returns a 404, you'd know that the URL you provided
> couldn't be found on the server, and therefore your POST didn't work.
> you don't need to receive a document back to know that it failed.

Thanks Scott - I was thinking of a "logical" rather than "physical"  
failure. i.e. incorrect format of data content rather than incorrect  
URL etc.


Jon Paris

www.Partner400.com
www.SystemiDeveloper.com

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------