A long time ago I created Http Dll, but that dll was rather difficult to use. So I've created a completely new version which is easier to use and has a lot more features. Since I was already using sockets internally, I decided to add functions to access them. Of course you also need buffers to manipulate the binary data, so I added those as well.
- Http requests
- Allows you to download web pages or files without blocking the game.
- Allows you to set request headers and post parameters.
- Allows you to read the status code, response headers and of course the message body.
- Supports file uploads.
- Supports listening sockets (server) and normal sockets (client).
- Supports IPv4 and IPv6.
- Supports TCP and UDP.
- Buffers: very similar to 39dll, but with a few extra data types.
- MD5 and SHA-1
- ZLib compression
- RC4 encryption
- Hexadecimal and base64 encoding/decoding
The DLL also fixes an annoying bug/feature in 39dll that can cause data to be lost. With 39dll, the maximum amount of data that can be recieved as a whole is limited by the operating system. Windows will only buffer a fixed amount of data, e.g. 64KB. This might not be enough if you're trying to send large files. If too much data is buffered by the receiver, the sender has to wait to send more data. Since 39dll's sendmessage function doesn't wait, part of the data is lost if too much data is sent at once. This DLL does additional buffering to avoid this problem, so no data is ever lost. You can buffer as much data as you want on both the sending side and the receiving side.
Unlike Http Dll, Http Dll 2 doesn't use a separate thread. I've changed this because it was confusing, and the advantage wasn't that big.
Download Http Dll 2.3 release 6 (with source code)
Download Http Dll 2.2 (with source code)
Download Http Dll 2.1 (with source code)
Download Http Dll 2.0 (with source code)
Http Dll 2 is distributed under the terms of the GNU Lesser General Public License.
Edited by Maarten Baert, 25 April 2015 - 03:45 PM.