Difference between revisions of "3rd:VPcURL"

From wiki.visual-prolog.com

(Initial)
 
(Added rest of the description)
Line 15: Line 15:
* a 3 step header/redirect example  
* a 3 step header/redirect example  
* a debug mode example  
* a debug mode example  
I assume you need VP 7101 for the background cases to run properly.
Please edit testcases.pro, testcase 5 and 6 (numbers 4 and 5), to provide your own FTP parameters. The other testcases are HTTP and can be run out of the box, provided the servers are not down. F5 will randomly pick a background testcase and run it. Once all the testcases do run, you could do some stress-testing by constantly hitting the F5 key.
Here are some recommendations how to incorporate VPcURL in your program.
=== Changes ===
4-12-2007 Initial version
11-12-2007 Added good old zlib compression library class and enhanced testcase 1
26-12-2007
* generic support for reuse of connections/performs
* header info + additional redirect testcase/sample
* debug info + debug example (primarily to debug protocol problems)
* libcurl and zlib version info


Download from [http://discuss.visual-prolog.com/viewtopic.php?t=7569 Discussion forum: VPcURL package]
Download from [http://discuss.visual-prolog.com/viewtopic.php?t=7569 Discussion forum: VPcURL package]
Provided by Jan de Lint.

Revision as of 09:16, 8 January 2008

The VPcURL package provides Visual Prolog bindings to the cURL library, which is a library for HTTP and FTP.

Features

  • VPcURL functions which are reasonable close to the Curl manual.
  • VP multithreading replacing curl_multi
  • HTTP and FTP
  • zlib compression library (some functions), see the Zlib specs

Separate classes with runnable annotated samples include

  • a complex connection with POST, file-upload, POST- and GET-vars, file download all in one go.
  • a simple case opening a page (.HTML) on the internet which does not exist
  • a simple case downloading an image file from the internet and saving it on disk.
  • an FTP upload testcase (please provide your own FTP adres, userid and password).
  • an FTP download case
  • a 3 step header/redirect example
  • a debug mode example

I assume you need VP 7101 for the background cases to run properly.

Please edit testcases.pro, testcase 5 and 6 (numbers 4 and 5), to provide your own FTP parameters. The other testcases are HTTP and can be run out of the box, provided the servers are not down. F5 will randomly pick a background testcase and run it. Once all the testcases do run, you could do some stress-testing by constantly hitting the F5 key.

Here are some recommendations how to incorporate VPcURL in your program.

Changes

4-12-2007 Initial version 11-12-2007 Added good old zlib compression library class and enhanced testcase 1 26-12-2007

  • generic support for reuse of connections/performs
  • header info + additional redirect testcase/sample
  • debug info + debug example (primarily to debug protocol problems)
  • libcurl and zlib version info

Download from Discussion forum: VPcURL package

Provided by Jan de Lint.