Thread overview
curl password issue
Feb 23, 2015
Andre
Feb 23, 2015
Marc Schütz
Feb 23, 2015
Andre
Feb 23, 2015
CraigDillabaugh
Feb 23, 2015
Ali Çehreli
Feb 24, 2015
Martin Nowak
Feb 24, 2015
Charles
February 23, 2015
Hi,

Curl has some issues with passwords containing special characters
like the hash key (#).
The password will not be accepted although it is correctly
set with the method setAuthencication("user", "pass1234#");

I know this is more a Curl issue than a DLang issue but it
is very frustrating and for unexperienced users very hard to
find out why the application is working for some users
and for some others not...

Could the documentation for setAuthentication could be enhanced?

Kind regards
André


February 23, 2015
On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:
> Hi,
>
> Curl has some issues with passwords containing special characters
> like the hash key (#).
> The password will not be accepted although it is correctly
> set with the method setAuthencication("user", "pass1234#");
>
> I know this is more a Curl issue than a DLang issue but it
> is very frustrating and for unexperienced users very hard to
> find out why the application is working for some users
> and for some others not...
>
> Could the documentation for setAuthentication could be enhanced?
>
> Kind regards
> André

Sure. You can make a pull request. The documentation in question is here:

https://github.com/D-Programming-Language/phobos/blob/master/std/net/curl.d#L1809
https://github.com/D-Programming-Language/phobos/blob/master/std/net/curl.d#L2411

Alternatively, you can suggest a text here, and I or some else will submit one.
February 23, 2015
Until now I didn't found out how to solve the issue excepting changing
the password;)
In case I find the solution I will make a pull request.

Kind regards
André

On Monday, 23 February 2015 at 16:58:16 UTC, Marc Schütz wrote:
> On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:
>> Hi,
>>
>> Curl has some issues with passwords containing special characters
>> like the hash key (#).
>> The password will not be accepted although it is correctly
>> set with the method setAuthencication("user", "pass1234#");
>>
>> I know this is more a Curl issue than a DLang issue but it
>> is very frustrating and for unexperienced users very hard to
>> find out why the application is working for some users
>> and for some others not...
>>
>> Could the documentation for setAuthentication could be enhanced?
>>
>> Kind regards
>> André
>
> Sure. You can make a pull request. The documentation in question is here:
>
> https://github.com/D-Programming-Language/phobos/blob/master/std/net/curl.d#L1809
> https://github.com/D-Programming-Language/phobos/blob/master/std/net/curl.d#L2411
>
> Alternatively, you can suggest a text here, and I or some else will submit one.

February 23, 2015
On Monday, 23 February 2015 at 17:47:54 UTC, Andre wrote:
> Until now I didn't found out how to solve the issue excepting changing
> the password;)
> In case I find the solution I will make a pull request.
>
> Kind regards
> André
>
> On Monday, 23 February 2015 at 16:58:16 UTC, Marc Schütz wrote:
>> On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:
>>> Hi,
>>>
>>> Curl has some issues with passwords containing special characters
>>> like the hash key (#).
>>> The password will not be accepted although it is correctly
>>> set with the method setAuthencication("user", "pass1234#");
>>>
>>> I know this is more a Curl issue than a DLang issue but it
>>> is very frustrating and for unexperienced users very hard to
>>> find out why the application is working for some users
>>> and for some others not...
>>>
>>> Could the documentation for setAuthentication could be enhanced?
>>>
>>> Kind regards
>>> André
>>
>> Sure. You can make a pull request. The documentation in question is here:
>>
>> https://github.com/D-Programming-Language/phobos/blob/master/std/net/curl.d#L1809
>> https://github.com/D-Programming-Language/phobos/blob/master/std/net/curl.d#L2411
>>
>> Alternatively, you can suggest a text here, and I or some else will submit one.

The suggestion to make a pull request wasn't to provide a work-around for the undesired behavior, but rather to add a comment noting what the the behavior was (as a warning for users).  If this is a limitation of curl, there likely isn't anything D can do about it.
February 23, 2015
On 02/23/2015 09:47 AM, Andre wrote:

> In case I find the solution I will make a pull request.

I think Marc Schütz meant a pull request improving or fixing the documentation.

Ali

February 24, 2015
On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:

> Curl has some issues with passwords containing special characters
> like the hash key (#).

I don't found any reference for this issue in curl and the D wrapper hardly adds anything. You're sure it isn't an issue with your program or how you pass the password?
February 24, 2015
On Tuesday, 24 February 2015 at 00:20:45 UTC, Martin Nowak wrote:
> On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:
>
>> Curl has some issues with passwords containing special characters
>> like the hash key (#).
>
> I don't found any reference for this issue in curl and the D wrapper hardly adds anything. You're sure it isn't an issue with your program or how you pass the password?

This might be the case here. I was recently dealing with this and I had to percent encode the hash key (%23 for reference). Also, I ran into issues regarding the http_proxy and https_proxy environment variables, but again those are unrelated to curl.d.