#1206 curl does not add / if abs_path is null

closed-fixed
None
5
2013-06-21
2013-03-14
ScottJi
No

Problem occurs when requesting an url in the form 'domain.tld' (instead of 'domain.tld/').

# curl -v domain.tld

This will send a request to the (proxy) server that does not contain a trailing '/' in the path.
According to RFC 2616 the client is required to add a final '/' if the abs_path of the URI is null.

Because of this, some strict RFC 2616 http proxy server implementations will return a 'Bad Request' to Curl.

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2013-03-15

    Thanks, I can see it too. I've added a test case that repeats the problem and I'll work on getting a fix for it...

     
  • Daniel Stenberg

    Daniel Stenberg - 2013-03-15
    • status: open --> open-confirmed
    • assigned_to: Daniel Stenberg
    • milestone: -->
     
  • Daniel Stenberg

    Daniel Stenberg - 2013-03-15
    • status: open-confirmed --> closed-fixed
     
  • Daniel Stenberg

    Daniel Stenberg - 2013-03-15

    Thanks, this is now fixed in commit e4b733e3f1a7 for the upcoming 7.30.0 release.

     
  • ScottJi

    ScottJi - 2013-03-15

    Thanks!! I have downloaded the latest source tree and it works.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks