You are not logged in.
Pages: 1
Hi, I'm trying this code:
winHTTP := TWinHTTP.Create('localhost', '888', false, '', '', 60000, 70000, 130000);
try
Result := winHTTP.Post(StringToUTF8(link), StringToUTF8(data));
finally
winHTTP.Free;
end;
but de post method return before my timeout, it always use the default constant
I think TWinHTTP.Create don't store any timeout parameters
The "winHTTP.Post" method call "THttpRequest.InternalREST" that call "self.Create(Server,Port,Https,'','')" using the default timeout parameters (const).
Can any one help me on this?
Thank you (sorry my english)
Offline
Timeout parameters do work.
You are just making a confusion about method types.
Post() is a class function.
So it wont use the winHttp instance parameters, by definition. Just the class type.
Use the Request() method instead.
Offline
Ok ab! Sorry about this!
Thank you for replay and congratulations on your framework!
Last edited by mmbk (2015-07-24 18:09:01)
Offline
Pages: 1