microsoft / sfs-client

Simple File Solution (SFS) Client
MIT License
15 stars 13 forks source link

Client: proxy support #84

Open arthuraraujo-msft opened 8 months ago

arthuraraujo-msft commented 8 months ago

Support proxies when making the connection to SFS.

Automatic handling should be done during the web requests with the goal of finding the first proxy that enables the connection to be created.

The handling will depend on the HTTP library chosen, but a possible approach is through libproxy/libproxy (github.com), which is also used by the Lite DO Client in the DO SDK.

libproxy has a good example with libcurl: https://github.com/libproxy/libproxy/blob/main/docs/samples/libcurl/curlget.c

arthuraraujo-msft commented 8 months ago

Check if cert pinning works through the proxy as well CONNECT would be used https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT