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

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


To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to