Files
ureq/src
Lukas Wagner 20a9ae7977 Proxy: Only use HTTP CONNECT for HTTPS requests
Previously, `ureq` used `HTTP CONNECT` for *all* requests, including
plain-text HTTP requests. However, some proxy servers like Squid
only allow tunneling via the `HTTP CONNECT` method on port 443 - since
it is usually only used to proxy HTTPS requests. As a result,
it was not possible to use `ureq` with a Squid server in its default configuration.

With the changes from this commit, ureq will interact with HTTP proxies
in a more standard-conforming way, where `CONNECT` is only used for
HTTPS requests. HTTP request paths are transformed in such a way that they
comply with RFC 7230 [1].

Tested against Squid 4.13 in standard configuration, with and without basic authentication,
for HTTP and HTTPS requests.

[1] https://www.rfc-editor.org/rfc/rfc7230#section-5.3.2
2023-03-16 11:59:23 +01:00
..
2022-12-09 17:03:35 +01:00
2022-12-03 23:42:58 -08:00
2023-03-13 16:27:38 +01:00
2021-08-23 21:21:39 +02:00
2022-09-29 08:29:32 -07:00
2023-03-15 03:54:13 +01:00
2022-07-09 10:13:44 -07:00
2022-06-11 17:06:43 -07:00
2021-08-13 09:26:04 +02:00