Project

General

Profile

Actions

Bug #2016

closed

Wt::Http::Client::parseUrl cannot parse URLs containing username and password

Added by Anonymous almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/08/2013
Due date:
% Done:

0%

Estimated time:

Description

If a URL contains a username and a password the parser takes the first separating colon and everything behind username is used as a port number and "bad_cast" exception is thrown. There is a workaround. One can set "Authorization" header instead of including credentials in a URL.

Actions #1

Updated by Koen Deforche over 10 years ago

  • Status changed from New to InProgress
  • Assignee set to Korneel Dumon
  • Target version set to 3.3.1

This is for a URL like http://username:password@example.com/

We need to make sure parseUrl() parses this, and, we properly formulate the request for it, I guess (not sure) using this:

http://en.wikipedia.org/wiki/Basic_access_authentication

i.e. by adding an 'Authorization' header

koen

Actions #2

Updated by Korneel Dumon over 10 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF