Skip to content
Tcl Source Code History Of Ticket 2d9b31130be2084e
Login

History Of Ticket 2d9b31130be2084e

Artifacts Associated With Ticket 2d9b31130be2084e

  1. Ticket change [bdfe647faa] (rid 193850) by christian.nassau on 2021-04-21 16:59:50:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized 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
      
    5. foundin initialized to: "2.9.1"
    6. is_private initialized to: "0"
    7. login: "christian.nassau"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "3b279cda57135cd36d2c32c66396637342913651"
    10. resolution initialized to: "None"
    11. severity initialized to: "Critical"
    12. status initialized to: "Open"
    13. submitter initialized to: "christian.nassau"
    14. subsystem initialized to: "81. Bundled Packages"
    15. title initialized to:
      Need Http option to control srvurl in proxied https requests
      
    16. type initialized to: "Bug"
  2. Ticket change [df6097844d] (rid 258001) by serhiy.storchaka on 2026-10-14 13:43:03:

    1. icomment:
      Implemented in Tcl 9.0 (http 2.10): register https with the endToEndProxy argument, e.g. <code>http::register https 443 ::tls::socket ::tls::socketCmd 1 1</code>. Then http opens the tunnel with CONNECT itself and sends <code>GET /v1.0/me/messages</code>; autoproxy is not needed.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [9025bc142f] (rid 259910) by serhiy.storchaka on 2026-10-22 17:19:25:

    1. closedate changed to: "2461328.071564375"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"