Samuli Seppänen
04b2a3c9b7
Switch from AGPLv3 to GPLv3
...
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2017-03-16 14:43:55 +02:00
James Yonan
971abda88f
copyright : updated to 2016
2016-09-03 23:29:23 -06:00
James Yonan
54fdda2ef4
URL::parm : added URL::ParmList::get_value_required()
...
method.
2016-08-17 11:34:45 -07:00
James Yonan
f3ed986525
URL::parm : trivial fix to return std::string instead of
...
const std::string.
2016-08-17 11:34:16 -07:00
James Yonan
b88fc41c7b
URL::encode : do a speculative reserve() on return string.
2016-08-17 11:33:19 -07:00
James Yonan
3552263fe4
HTTP : added a simple method parser.
2016-06-09 17:20:04 -06:00
James Yonan
dbe8a991e1
URL : Added URL::encode() method.
2016-06-09 17:18:06 -06:00
James Yonan
7caa2817f0
HTTP parser : change all char variables to unsigned char
...
so as to be more straightforward with unicode.
2016-06-09 17:15:43 -06:00
James Yonan
982f57c0f4
HTTP HeaderList : Added a non-const get() method, so users
...
can modify headers as well as read them.
2016-06-09 16:57:32 -06:00
James Yonan
1ab262d48f
urlparm : added URL::ParmList::request() method (no
...
parameters) to return raw request string.
2016-05-27 23:13:55 -06:00
James Yonan
387c8f04c0
urlencode : removed match_path() and match_prefix() as they
...
are no longer used and are redundant with URL::decode_path().
2016-05-27 23:12:02 -06:00
James Yonan
a6b5e84905
urlparse.hpp : if URI is empty, set to "/".
2015-10-24 18:28:04 -06:00
James Yonan
979f04174f
URL::Parse changes:
...
* Added from_components() static initializer.
* In to_string() method, don't include the port number
in the URL if it is standard, i.e. 80 for http or 443
for https.
* In to_string() method, bracket the host/address if it
contains one of these chars: ':', '/', or '\'.
* Normalize and document the usage where special address
types such as unix domain sockets or windows named pipes
store a tag such as "unix" or "np" as the port component
of an address/port tuple.
2015-10-17 11:49:40 -06:00
James Yonan
b319973fec
Added URL::Parse() class for parsing/validating URLs.
2015-10-15 23:45:00 -07:00
James Yonan
d3071a7477
Added HTTP::WebException for throwing exceptions
...
with specific HTTP status codes.
2015-09-02 12:12:00 -07:00
James Yonan
8d54cbd053
Added URL::Parm and URL::ParmList for parsing URL parameters.
2015-09-02 12:09:53 -07:00
James Yonan
959fce9cae
In HTTP::Status (status.hpp), added 412 PreconditionFailed.
2015-09-02 03:13:57 -07:00
James Yonan
fb753bc008
In HTTP::Request (request.hpp), added at_least_http_1_1()
...
method.
2015-09-02 03:12:42 -07:00
James Yonan
e19ce0506a
In urlencode.hpp decode_path() method, remove leading '/'
...
from URI.
Also added new methods match_path() and match_prefix().
2015-07-04 16:01:03 -06:00
James Yonan
ec2f50fa0f
In HTTP::Status, added 401 Unauthorized.
2015-07-04 16:00:05 -06:00
James Yonan
c9930250d9
Forgot space between "Bad Request" in HTTP status strings.
2015-06-28 00:33:16 -06:00
James Yonan
256c07ff28
Added new source file openvpn/http/urlencode.hpp to deal with
...
URL validation, encoding, and decoding.
2015-06-27 16:36:20 -06:00
James Yonan
6218afd80d
Added 400 Bad Request HTTP status code.
2015-06-27 16:25:24 -06:00
James Yonan
88518335c4
Boost dependency elimination -- change boost::algorithm
...
usage (for string algorithms) to use methods of our own
implementation in openvpn/common/string.hpp.
2015-06-04 19:22:59 -06:00
James Yonan
84a93b7eb1
HTTP proxy client can now skip extraneous HTML content
...
before the proxy session starts.
2015-06-03 21:50:28 -06:00
James Yonan
cbea1175ff
Added HTTP::Request::to_string_compact() method.
2015-06-01 14:50:51 -06:00
James Yonan
35ac9f6229
Renamed types.hpp to size.hpp since it now only defines
...
size_t and ssize_t.
2015-05-17 13:27:34 -06:00
James Yonan
fe6fcefa61
C++11 : rename NULL to nullptr
2015-05-17 02:53:37 -06:00
James Yonan
b90165405d
Added InternalServerError to http/status.hpp.
2015-04-22 15:42:46 -06:00
James Yonan
3737007c8f
Added HTTP::Status::to_string() method.
2015-04-18 19:10:47 -06:00
James Yonan
9684fbddd7
Added HTTP ReplyType and RequestType typedef containers.
2015-04-09 00:22:27 -06:00
James Yonan
0648246385
Fixed bug/typo in HTTP::Request::to_string() where formatted
...
URI was wrong. This code is normally only used for debugging.
2015-03-19 14:00:02 -06:00
James Yonan
c2c7292a70
Updated copyright to 2015.
2015-01-06 12:56:21 -07:00
James Yonan
d231f64715
In HTTP Proxy module (openvpn/transport/client/httpcli.hpp),
...
moved HTTP status constants out to common file.
2014-08-10 19:07:22 -06:00
James Yonan
21bf79007c
Added HTTP::Header::get_value_trim method.
2014-08-10 18:39:31 -06:00
James Yonan
2c6d972ad6
Added AGPL copyright/licensing language.
2014-07-20 21:22:06 -06:00
James Yonan
4d9a751af2
Added head comments to all source files.
...
Minor reorganization of unicode code.
2012-11-23 06:18:43 +00:00
James Yonan
9c6d783134
Added HTTP Proxy Digest Auth support.
2012-10-26 12:36:40 +00:00
James Yonan
3ca3a857bd
Initial HTTP proxy implementation in core, with support for
...
non-authenticated proxies and Basic Auth.
Includes new PROXY_ERROR and PROXY_NEED_CREDS events.
Still to do: Digest and NTLM auth.
2012-10-24 06:38:20 +00:00