Skip to content

Conversation

@GPHemsley
Copy link

The HTTP Basic authentication test (disabled in d0b0813 / 0.52) was constantly failing because the underlying feature was not properly implemented in httplite, lynx, or iosock.

This PR re-enables the test and adds the functionality to those methods.

The problem with the 'httplite' method was due to a bug in the HTTP::Lite module that incorrectly parses URLs with a userinfo portion. I've raised neilb/HTTP-Lite#2 for that. In the meantime, this works around the issue by rebuilding the URL without the userinfo portion (since it's passed in via a request header anyway).

The 'iosock' method was never getting the userinfo because of the way the interface works, so I've added the request header for that, too.

And lynx, for some reason, requires the userinfo to be passed via the command-line. It seems to allow it in the URL, but it doesn't actually make use of the information there.

@GPHemsley
Copy link
Author

The original impetus for this PR was a request by @karenetheridge.

@karenetheridge
Copy link
Member

The original impetus for this PR was a request by @karenetheridge.

Huh! when? :)

@GPHemsley
Copy link
Author

March:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants