Lunar Place

Time • Space • Etcetera

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
Usage:
It's pretty simple, as there is whole 1 function exported:
> ReceiveHTTP()
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.



Files

PCURL 1.0.0.40.zip


[ Other stuff: recently updated pages ]

09/02/2019  \ 0 \  TruePagesInc
06/02/2019  | 1 |  TrueMetalInc
06/02/2019  | 2 |  TrueGaemsInc
06/02/2019  | 3 |  TrueFilmsInc
22/01/2019  / 4 /  Speechwriter
20/12/2018  \ 5 \  DialogDesigner2
13/11/2017  \ 6 \  Lunar Ship
09/11/2017  / 7 /  DarkNote

[  @   |   ?  ]

© 2k16-19