Actually, THttpCli.DoRequestAsync is implemented to trigger an exception if
there is nothing to POST/PUT:

    if ((Rq = httpPOST) or (Rq = httpPUT)) and
       (not Assigned(FSendStream) or
        (FSendStream.Position = FSendStream.Size)) then
        raise EHttpException.Create('HTTP component has nothing to post or
put',
                                    httpErrNoData);

I wonder if I should suppress this test (except not Assigned(FSendStream))
so that empty data can be sent.
Any opinion ?

--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to