#1 2014-03-10 14:00:23

berndvf
Member
Registered: 2013-03-08
Posts: 16

TWinHTTP.Post not working correctly

Hi there,

While using the TWinHTTP.Post function I noticed that my data was never being sent. Looking at the TWinHTTPAPI.Post function it looks like the aData parameter is never being sent. Is this correct?

SynCrtSock.pas line 5267

class function TWinHttpAPI.Post(const aURI, aData: RawByteString;
  const aHeader: RawByteString=''): RawByteString;
begin
  result := InternalREST(aURI,'POST','',aHeader);
end;

Offline

#2 2014-04-28 08:52:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,552
Website

Re: TWinHTTP.Post not working correctly

Oups...

We have now fixed missing sending of data in TWinHttpAPI.Put/Post methods.
See http://synopse.info/fossil/info/85371eca41

Thanks for the feeback!

Offline

#3 2014-04-29 19:29:23

berndvf
Member
Registered: 2013-03-08
Posts: 16

Re: TWinHTTP.Post not working correctly

Great thanks smile

Offline

#4 2014-04-29 21:21:37

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,552
Website

Re: TWinHTTP.Post not working correctly

Sorry for fixing it so late!
sad

Offline

Board footer

Powered by FluxBB