PCurl.DLL for Purebasic
Recent update: 26/12/2016
This DLL is extension to a PB library used for HTTP/S.
The PB uses own wrapper over CURL library, and here is additional wrapper over library which PB uses.
Some advantages over built-in HTTP/S functions:
- Proxy support
- Simple threading support (works fine in 1000+ threads)
- Raw access to received data
- Custom GET/POST/HEAD (also referer, UA, cookies)
- More and more
It's pretty simple, as there is whole 1 function exported:
See "GetExample.pb" for details and some quick samples of responce parsing.
Also I know it's made weird a bit, but... have no much wish to remake it more usable (as it works fine already, so let it remains as is).
The same thing with how it can be used with multithreading.
Anyway, if you want, you can modify "PCURL.pb"/"libcurl.pbi" files to make all the things different.
UPDATE: with a newer PB versions (5.60+) this stuff became less actual because of some functions added to PB itself.
But there are still no proxy support in PB and many others.
Download archive contains DLL binaries (Windows x86)+ full sources needed to build DLL.
Compatibility checked with PB 5.40 - 5.50.