Share Tips, Code Samples, etc. with the Visual Prolog community.
User avatar
Jan de Lint
VIP Member
Posts: 83
Joined: 6 Mar 2000 0:01

VPcURL package.

Unread post by Jan de Lint »

Note: for this package to work, you need Vip 7.2 and on Windows 7 you need 7.3. This package only compiles cleanly with 7.3.
Here are some recommendations how to incorporate VPcURL in your program. This description is also included in the zip-file.
Dll-s are not included due to upload size limitations. But you can use virtually any curl windows dll from the Curl download page. The package does not require any lib file.

Changes
20-5-2010
- compiles with VP 7.3
19-9-2009
- Fixed broken HTTP post
- streamlined Post housekeeping
17-11-2008
- Version for VP 7.2
- Internal cleanup
19-2
- Switched the expat bindings to libexpatwexpat xml parser bindings and usage example
26-12
- 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
11-12 Added good old zlib compression library class and enhanced testcase 1
4-12 Initial version
Attachments
curltest73.zip
for VP 7.3
(217.53 KiB) Downloaded 1805 times
Last edited by Jan de Lint on 20 May 2010 8:21, edited 16 times in total.
User avatar
Jan de Lint
VIP Member
Posts: 83
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint »

Gildas,
Well, without the additional investment of PDC (thanks Thomas!) it would have taken another year or so to get to the maturity it has now.
I was thinking that you could use VPcURL to connect to a server for registry and initial connection of two or more of your clients/servers.
For those who want to know what is at the other end of testcase 1, I include here the PHP code that is at the server end (be it a Windows or a Linux server).
Attachments
mirrorVP.zip
mirrorVP.php + mirrorVPx.php 26-12
- unpack gzipped file
- location redirect
(1.11 KiB) Downloaded 2001 times
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

The description of this package is copied to the wiki 3rd:VPcURL, but the download remains here.
Regards Thomas Linder Puls
PDC
User avatar
Jan de Lint
VIP Member
Posts: 83
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint »

Fixed broken Http post functions (broken since 7.2).

Http post housekeepingand curl_formadd interface simplified.
Unfortunately libcurl and other dll's are not included due to lack of space.
You can however use one of the Windows Curl dll's available from the Curl download page.
A lib file is not required.
]an
User avatar
drspro2
VIP Member
Posts: 97
Joined: 28 Apr 2006 12:03

Unread post by drspro2 »

with this implementation, can I also do a https request ? ( https instead of http )
User avatar
Jan de Lint
VIP Member
Posts: 83
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint »

This package is superseded by the "VPcURL revised" package!
Last edited by Jan de Lint on 30 Nov 2021 13:06, edited 2 times in total.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Regards Thomas Linder Puls
PDC
Post Reply