README 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ===============
  2. ndg_httpsclient
  3. ===============
  4. Description
  5. ===========
  6. This is a library to enable urllib2 to be used with SSL sockets from pyOpenSSL
  7. instead of the built in ssl library. A script is provided to exercise it:
  8. ndg_httpclient::
  9. - Utility to fetch data using HTTP or HTTPS GET from a specified URL.
  10. Prerequisites
  11. =============
  12. This has been developed and tested for Python 2.6 (compiled with HTTPS support).
  13. pyOpenSSL
  14. Installation
  15. ============
  16. Installation can be performed using easy_install, e.g.::
  17. easy_install ndg_httpsclient-0.1.0-py2.6.egg
  18. Running ndg_httpclient
  19. ======================
  20. Parameter::
  21. url The URL of the resource to be fetched
  22. Options::
  23. -h, --help Show help message and exit.
  24. -c FILE, --certificate=FILE
  25. Certificate file - defaults to $HOME/credentials.pem
  26. -k FILE, --private-key=FILE
  27. Private key file - defaults to the certificate file
  28. -t DIR, --ca-certificate-dir=DIR
  29. Trusted CA certificate file directory.
  30. -d, --debug Print debug information - this may be useful in
  31. solving problems with HTTP or HTTPS access to a
  32. server.
  33. -f FILE, --fetch=FILE Output file
  34. -n, --no-verify-peer Skip verification of peer certificate..