Ethaniel
10/09/2012, 15h05
Le problème vient de se fixer de mon côté également.
curl -v https://www.ovh.com:1664 * About to connect() to www.ovh.com port 1664 (#0) * Trying 213.186.33.34... connected * Connected to www.ovh.com (213.186.33.34) port 1664 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs/ * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using AES256-SHA * Server certificate: * subject: /serialNumber=424761419/1.3.6.1.4.1.311.60.2.1.3=FR/1.3.6.1.4.1.311.60.2.1.2=Nord/1.3.6.1.4.1.311.60.2.1.1=ROUBAIX/2.5.4.15=Private Organization/C=FR/postalCode=59100/ST=NORD/L=ROUBAIX/streetAddress=2 rue Kellermann/O=OVH/OU=0002 424761419/OU=Comodo EV SSL/CN=www.ovh.com * start date: 2010-11-15 00:00:00 GMT * expire date: 2012-12-14 23:59:59 GMT * subjectAltName: www.ovh.com matched * issuer: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO Extended Validation Secure Server CA * SSL certificate verify ok. > GET / HTTP/1.1 > User-Agent: curl/7.19.0 (x86_64-suse-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.8h zlib/1.2.3 libidn/1.10 > Host: www.ovh.com:1664 > Accept: */* > < HTTP/1.1 302 Found < Set-Cookie: slb=R3935341425; path=/; expires=Sun, 09-Sep-2012 23:59:33 GMT < Date: Fri, 07 Sep 2012 12:00:54 GMT < Server: Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8g mod-xslt/1.3.9 < Location: https://www.ovh.com/fr/index.xml < Cache-Control: max-age=60 < Expires: Fri, 07 Sep 2012 12:01:54 GMT < Vary: Accept-Encoding < Content-Length: 337 < Content-Type: text/html; charset=iso-8859-1 <302 Found Found
The document has moved here.
Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8g mod-xslt/1.3.9 Server at www.ovh.com Port 443 * Connection #0 to host www.ovh.com left intact * Closing connection #0 * SSLv3, TLS alert, Client hello (1):
curl -v https://www.ovh.com:1664 * About to connect() to www.ovh.com port 1664 (#0) * Trying 213.186.33.34... connected * Connected to www.ovh.com (213.186.33.34) port 1664 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs/ * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using AES256-SHA * Server certificate: * subject: /serialNumber=424761419/1.3.6.1.4.1.311.60.2.1.3=FR/1.3.6.1.4.1.311.60.2.1.2=Nord/1.3.6.1.4.1.311.60.2.1.1=ROUBAIX/2.5.4.15=Private Organization/C=FR/postalCode=59100/ST=NORD/L=ROUBAIX/streetAddress=2 rue Kellermann/O=OVH/OU=0002 424761419/OU=Comodo EV SSL/CN=www.ovh.com * start date: 2010-11-15 00:00:00 GMT * expire date: 2012-12-14 23:59:59 GMT * subjectAltName: www.ovh.com matched * issuer: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO Extended Validation Secure Server CA * SSL certificate verify ok. > GET / HTTP/1.1 > User-Agent: curl/7.19.0 (x86_64-suse-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.8h zlib/1.2.3 libidn/1.10 > Host: www.ovh.com:1664 > Accept: */* > < HTTP/1.1 405 Method Not Allowed < Date: Fri, 07 Sep 2012 12:00:55 GMT < Server: libwww-perl-daemon/5.827 < Connection: close < * Closing connection #0 * SSLv3, TLS alert, Client hello (1):
The document has moved here.
proxy('https://www.ovh.com:1664');
# python sms.py /usr/local/lib64/python2.6/site-packages/wstools-0.3-py2.6.egg/wstools/XMLSchema.py:3107: DeprecationWarning: object.__init__() takes no parameters tuple.__init__(self, args) Traceback (most recent call last): File "sms.py", line 9, insession = soap.login('xxxxxx', 'xxxxxx', 'fr', 0) File "build/bdist.linux-x86_64/egg/SOAPpy/Client.py", line 540, in __call__ File "build/bdist.linux-x86_64/egg/SOAPpy/Client.py", line 562, in __r_call File "build/bdist.linux-x86_64/egg/SOAPpy/Client.py", line 425, in __call File "build/bdist.linux-x86_64/egg/SOAPpy/Client.py", line 324, in call SOAPpy.Errors.HTTPError:
#!/usr/bin/python import pprint from SOAPpy import WSDL soap = WSDL.Proxy('https://www.ovh.com/soapi/soapi-re-1.47.wsdl') #login session = soap.login('xxxxx-OVH', 'xxxxxx', 'fr', 0) print "login successfull" #telephonySmsCreditLeft result = soap.telephonySmsCreditLeft(session, 'sms-xxxxx') print "telephonySmsCreditLeft successfull" pp = pprint.PrettyPrinter(indent=4) pp.pprint(result) # your code here ... #logout soap.logout(session) print "logout successfull"
200 OK at sms.pl line 5.
perl sms.pl login successfull 200 OK at sms.pl line 5.
#!/usr/bin/perl use Data::Dumper; use SOAP::Lite on_fault => sub { my($soap, $res) = @_; die ref $res ? $res->faultstring : $soap->transport->status; }; my $soap = SOAP::Lite -> uri('https://soapi.ovh.com/manager') -> proxy('https://www.ovh.com:1664'); #login my $result = $soap->call( 'login' => ('xxxxx-OVH', 'xxxxx', 'fr', 0) ); print "login successfull\n"; my $session = $result->result(); #telephonySmsCreditLeft my $result = $soap->call( 'telephonySmsCreditLeft' => ($session, 'sms-xxxx') ); print "telephonySmsCreditLeft successfull\n"; my $return = $result->result(); print Dumper $return; # your code here ... #logout $soap->call( 'logout' => ( $session ) ); print "logout successfull\n";