HTTP library v1.5 is attached.
The new version adds support for asynchronous calls.
You can now use Request.GetAsyncResponse to send a request to a server and get the response without blocking the main program.
When the response is available the Response event will be fired.
The response stream could also be asynchronously downloaded with Request.GetAsyncStream which downloads the stream to a temporary (or not temporary) file, or Request.GetAsyncString which builds a string out of the response. In both cases the Stream event will be fired when the process finishes retrieving the stream.
It is also possible to cancel the process and get the number of bytes downloaded (to show the progress).
The manual is available online: HTTP
Setup instructions:
- Download the zip file.
- Extract and copy HTTP.dll (library), HTTP.cs (code for merging) and HTTP.CHM (help file) to Basic4ppc folders library:
C:\Program Files\Anywhere Software\Basic4ppc Desktop\Libraries
Also replace existing copies of http.dll in the source code folder.
The new version adds support for asynchronous calls.
You can now use Request.GetAsyncResponse to send a request to a server and get the response without blocking the main program.
When the response is available the Response event will be fired.
The response stream could also be asynchronously downloaded with Request.GetAsyncStream which downloads the stream to a temporary (or not temporary) file, or Request.GetAsyncString which builds a string out of the response. In both cases the Stream event will be fired when the process finishes retrieving the stream.
It is also possible to cancel the process and get the number of bytes downloaded (to show the progress).
The manual is available online: HTTP
Setup instructions:
- Download the zip file.
- Extract and copy HTTP.dll (library), HTTP.cs (code for merging) and HTTP.CHM (help file) to Basic4ppc folders library:
C:\Program Files\Anywhere Software\Basic4ppc Desktop\Libraries
Also replace existing copies of http.dll in the source code folder.