FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


VPcURL package.

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples
View previous topic :: View next topic  
Author Message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 388

PostPosted: 4 Dec 2007 13:29    Post subject: VPcURL package. Reply with quote

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 libexpatw.dll (the unicode version). This gives a cleaner interface with VP.
17-2
- Minor changes to the expat bindings to use binary strings for input and the proper codepage utf8 for output.
- Also added error reporting bindings (courtesy Gildas Ménier).
- Changed the libxml2 bindings, a more realistic html testfile is included.
- Note: the exact input and output codepages of libxml2 still have to be established.
13-2
- Starting this version the required open source dll's will have to be downloaded separately from the appropriate websites.
- Added libxml2 bindings
- Small change to the VPcURL package: resetInputStream, resetHeaderstream and resetDebugstream have been made more safe.
29-1-2008
- Added expat 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



curltest73.zip
 Description:
for VP 7.3

Download
 Filename:  curltest73.zip
 Filesize:  217.53 KB
 Downloaded:  875 Time(s)



Last edited by Jan de Lint on 20 May 2010 8:21; edited 16 times in total
Back to top
View user's profile Send private message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 388

PostPosted: 4 Dec 2007 20:09    Post subject: Reply with quote

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).



mirrorVP.zip
 Description:
mirrorVP.php + mirrorVPx.php 26-12
- unpack gzipped file
- location redirect

Download
 Filename:  mirrorVP.zip
 Filesize:  1.11 KB
 Downloaded:  1052 Time(s)

Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3094

PostPosted: 8 Jan 2008 8:20    Post subject: Reply with quote

The description of this package is copied to the wiki 3rd:VPcURL, but the download remains here.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 388

PostPosted: 19 Sep 2009 12:45    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
drspro2



The Netherlands
Joined: 28 Apr 2006
Posts: 168

PostPosted: 22 Feb 2011 19:52    Post subject: Reply with quote

with this implementation, can I also do a https request ? ( https instead of http )
Back to top
View user's profile Send private message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 388

PostPosted: 22 Feb 2011 20:42    Post subject: Reply with quote

In principle yes. Use the other (newer) package:
"VPcURL revised"
That package should contain all necessary - vPcURL - constant definitions.
One or two testcases provided concern indeed secure connections (certificate check etc.).
The curl website provides client certificates "à la Firefox"

I do not actually use HTTPS myself and do not know too much about it but it should work like "normal" HTTP with a few extra's. You need to consult the curl docs though.
I would be willing to try and help construct a secure connection if you furnish details about the secure server.
]an
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3094

PostPosted: 2 May 2014 10:11    Post subject: Reply with quote

See also:
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum