Trying to communicate with a web server via https and the HTTPGet example
but the
connection fails with error -1060 also if I disable certificate
authentication using...
MyHTTP.SSL.VerifyHost = False
MyHTTP.SSL.VerifyPeer = False
Found an old discussion about this issue where Jim couldn't get it to work
but thread
ends there...
http://sourceforge.net/p/gambas/mailman/message/31259267/
Using the debug option I get the following back (IP# and host names
removed)...
* About to connect() to xxx.yyyy.com port 443 (#0)
* Trying 194.XX.XXX.XX... * Connected to xxx.yyyy.com (194.XX.XXX.XX)
port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed
* Closing connection #0
If I use the curl command line tool with the "--insecure option" it works as
intended
and I get data back from the server. Reading the libcurl doc's I see there
is a option
to disable it as follows and wonder if this is what "MyHTTP.SSL.VerifyPeer =
False" do?
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
Source: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
[System]
Gambas=3.5.3
OperatingSystem=Linux
Kernel=3.2.0-24-generic-pae
Architecture=x86
Distribution=Ubuntu 12.04 LTS
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=496M
[Libraries]
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.1.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3
/CJ
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user