Overview
| Artifact ID: | bdfe647faa89cdfb7f6a39e26ac5b08854f183386e0ba1dfbe10be8afa819a89 |
|---|---|
| Ticket: | 2d9b31130be2084e206524536978a37c17d2f887
Need Http option to control srvurl in proxied https requests |
| User & Date: | christian.nassau on 2021-04-21 16:59:50 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
I'm trying to access the Microsoft MSGraph API through Tcl's http package, using tls and autoproxy to tunnel through a proxy. The code package require http 2.9.1 package require autoproxy autoproxy::init http::register https 443 [list ::autoproxy::tls_socket] set req [http::geturl https://graph.microsoft.com/v1.0/me/messages -headers {Authorization {Bearer ...}}] ends up sending a HTTP request of the form GET https://graph.microsoft.com/v1.0/me/messages HTTP/1.1 Microsoft does not like this because of the full URI, and answers with "code": "ResourceNotFound", "message": "Invalid version: graph.microsoft.com", It instead expects the request without the full URI: GET /v1.0/me/messages HTTP/1.1 From a quick internet search it seems to me that the inclusion of the full path might be the right choice for plain HTTP proxies. For HTTPS the proxy uses a "CONNECT" call to establish the connection and the full URI is neither needed nor helpful (as this problem shows). It might be helpful to let the users of the http package control the handling of this proxy/url issue using a new option for the http connection - foundin changed to: "2.9.1"
- is_private changed to: "0"
- login: "christian.nassau"
- priority changed to: "5 Medium"
- private_contact changed to: "3b279cda57135cd36d2c32c66396637342913651"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "christian.nassau"
- subsystem changed to: "81. Bundled Packages"
- title changed to:
Need Http option to control srvurl in proxied https requests
- type changed to: "Bug"