You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89Lines changed: 89 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,3 +2,92 @@ A HTTPS client implementation for httplib and urllib2 based on
2
2
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the
3
3
default provided with Python and importantly enables full verification of the
4
4
SSL peer.
5
+
6
+
Releases
7
+
========
8
+
0.4.0
9
+
-----
10
+
* Made dual compatible with Python 2 / 3.
11
+
12
+
0.3.3
13
+
-----
14
+
* Fix to add in AnotherName for ``subjectAltNames`` field - added for support for CACert issued
15
+
certs (thanks to Gu1).
16
+
* Fix to HTTP Basic Auth option for ``ndg.httpsclient.utils.main``
17
+
* Fix to ``ServerSSLCertVerification`` so that it can pass a function-based callback instead of using ``__call__``. In newer versions of OpenSSL (>= 0.14) the latter failed because of a request for ``__name__`` attribute.
18
+
19
+
0.3.2
20
+
-----
21
+
* Fix to SubjectAltNames support check - should only be enabled if pyasn1 is
22
+
installed.
23
+
* Fix to open_url: HTTP Request object was being created inside if headers is
24
+
None block - now corrected to create regardless.
25
+
* Added http basic auth support to script. (Thanks to Willem van Engen)
26
+
27
+
0.3.1
28
+
-----
29
+
* extended utils functions to support keyword for passing additional urllib2
30
+
handlers.
31
+
32
+
0.3.0
33
+
-----
34
+
* Added ndg.httpsclient.utils.fetch_stream_from_url function and added
35
+
parameter for data to post in open_url and fetch_* methods.
36
+
* fix to ndg.httpsclient.utils module _should_use_proxy and open_url functions
37
+
38
+
0.2.0
39
+
-----
40
+
* added support for SSL verification with subjectAltNames using pyasn1
41
+
* fixed minor bug - SSL cert DN prefix matching
42
+
43
+
0.1.0
44
+
-----
45
+
Initial release
46
+
47
+
Prerequisites
48
+
=============
49
+
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13 and 0.14.
50
+
Version 0.4.0 tested with pyOpenSSL 0.15.1 and Python 2.7 and 3.4. Note that proxy support
51
+
is only available from Python 2.6.2 onwards. pyasn1 is required for correct SSL
52
+
verification with subjectAltNames.
53
+
54
+
Installation
55
+
============
56
+
Installation can be performed using easy_install or pip.
57
+
58
+
Running ndg_httpclient
59
+
======================
60
+
A simple script for fetching data using HTTP or HTTPS GET from a specified URL.
61
+
62
+
Parameter:
63
+
64
+
``url``
65
+
The URL of the resource to be fetched
66
+
67
+
Options:
68
+
69
+
``-h, --help``
70
+
Show help message and exit.
71
+
72
+
``-c FILE, --certificate=FILE``
73
+
Certificate file - defaults to ``$HOME/credentials.pem``
74
+
75
+
``-k FILE, --private-key=FILE``
76
+
Private key file - defaults to the certificate file
77
+
78
+
``-t DIR, --ca-certificate-dir=DIR``
79
+
Trusted CA certificate file directory.
80
+
81
+
``-d, --debug``
82
+
Print debug information - this may be useful in solving problems with HTTP or
0 commit comments