Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I also use synapse in my projects. To be make my work simple and faster with Synapse, I wrote THTTPSendEx class, that gives fast speed of using and minimum of code and more features. Currently it's a beta version. </p> <p>It's views like Indy. </p> <p>Create THTTPSendEx class. Create methods OnBeginWork, OnWork, OnWorkEnd from it prototypes(see pas file), and assign it to created class. Thats all what you need, and just call GET, POST functions of the class.</p> <p>I also implement multipart-fomdata for fast file posting in this format as TMultipartFormDataStream class. With it you can easy write files and fields.</p> <p>Example of using:</p> <pre><code>var HTTP:THTTPSendEx; Data:TMultipartFormDataStream; sHTML:string; //Recived HTML code from web begin HTTP:=THTTPSEndEx.Create; Data:=TMultipartFormDataStream.Create; try Data.AddFile('myFile','Path to the local file(No UNC paths)'); Data.DataEnd; if HTTP.Post('URL HERE',Data,sHTML) then begin //Connection established //Check HTTP response if HTTP.IsSuccessfull then //HTTP returns "200 OK" code. begin ShowMessage('File successfully posted to the server.'); end; end else begin ShowMessage('Can not establish a connection to the server...'+#13+'Network is not avaliable or server socket does not exist.'); end; finally FreeAndNil(HTTP); FreeAndNil(Data); end; end; </code></pre> <p><a href="http://arhangelsoft.ru/delphi/advanced-synapse-library-thttpsendex/" rel="nofollow">You can see it at my web-site</a>.</p> <p>If you have any ideas for this, please write it's as a comment to project page.</p> <p>Sorry for mistakes in english. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload