diff options
author | Saloni Kasbekar <saloni.kasbekar@intel.com> | 2022-12-16 16:38:42 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-03-13 00:34:01 +0000 |
commit | f5148b126710d1e9bbbded75a72740e5cbd92617 (patch) | |
tree | 2c8ae9b5bb066134c54090c61bdafde838fb5eae /BaseTools/Source | |
parent | 2880ca12cea42142a3122dabfa2857a70a51759f (diff) | |
download | edk2-f5148b126710d1e9bbbded75a72740e5cbd92617.zip edk2-f5148b126710d1e9bbbded75a72740e5cbd92617.tar.gz edk2-f5148b126710d1e9bbbded75a72740e5cbd92617.tar.bz2 |
NetworkPkg/HttpDxe: Added support for HTTP CONNECT request.
1. Store information in HttpInstance.
a) Proxy URL from last HTTP CONNECT request (ProxyUrl) and its length
(ProxyUrlLen).
b) State of connection to proxy server (ProxyConnected) - TRUE after
HTTP CONNECT success.
c) Host name extracted from endpoint URL (EndPointHostName).
2. Modified EfiHttpRequest() flow to handle HTTP CONNECT request.
a) Treating request's URL as "endpoint URL". In case of HTTP CONNECT
request, directing it to Proxy URL with Host set to "endpoint URL".
3. Added PrintLib instance to cover AsciiSPrint() call.
Implementation based on UEFI Specification v2.11
- Section 24.7.10 to use HTTP CONNECT method to connect to Proxy
Server and use it to forward the HEAD/GET request to Endpoint
Server's BootURI.
- Section 29.6.6 to use EFI_HTTP_CONNECT_REQUEST_DATA structure
for HttpMethodConnect usage in EFI_HTTP_PROTOCOL.Request()
Signed-off-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
Diffstat (limited to 'BaseTools/Source')
0 files changed, 0 insertions, 0 deletions