VPcURL package.

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

VPcURL package.

Post by Jan de Lint » 4 Dec 2007 13:29

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 925 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: 235
Joined: 6 Mar 2000 0:01

Post by Jan de Lint » 4 Dec 2007 20:09

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 1097 times

User avatar
Thomas Linder Puls
VIP Member
Posts: 2341
Joined: 28 Feb 2000 0:01

Post by Thomas Linder Puls » 8 Jan 2008 8:20

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: 235
Joined: 6 Mar 2000 0:01

Post by Jan de Lint » 19 Sep 2009 12:45

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

drspro2
Active Member
Posts: 116
Joined: 28 Apr 2006 12:03

Post by drspro2 » 22 Feb 2011 19:52

with this implementation, can I also do a https request ? ( https instead of http )

User avatar
Jan de Lint
VIP Member
Posts: 235
Joined: 6 Mar 2000 0:01

Post by Jan de Lint » 22 Feb 2011 20:42


User avatar
Thomas Linder Puls
VIP Member
Posts: 2341
Joined: 28 Feb 2000 0:01

Post by Thomas Linder Puls » 2 May 2014 10:11

Regards Thomas Linder Puls
PDC

Post Reply