www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - curl password issue

reply "Andre" <andre s-e-a-p.de> writes:
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é
Feb 23 2015
next sibling parent reply "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
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.
Feb 23 2015
parent reply "Andre" <andre s-e-a-p.de> writes:
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.
Feb 23 2015
next sibling parent "CraigDillabaugh" <craig.dillabaugh gmail.com> writes:
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.
Feb 23 2015
prev sibling parent =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
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
Feb 23 2015
prev sibling parent reply "Martin Nowak" <code dawg.eu> writes:
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?
Feb 23 2015
parent "Charles" <csmith.ku2013 gmail.com> writes:
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.
Feb 23 2015