Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

errorNo 26 couldn't open file "mypass" with parameter starting with @ #24

Open
sushicodeur opened this issue Mar 27, 2015 · 0 comments
Open

Comments

@sushicodeur
Copy link

I'm facing a strange behavior : I'm calling an API passing two parameters, when the _password starts with the char "@", ~/lib/Buzz/Client/Curl.php throws a RequestException (line 26)

errorNo : 26
errorMessage : couldn't open file "mypass"

$url = "http://project.dev/api/v2/auth/login_check?access_token=avalidtoken"
$headers = array();
$parameters = array(
        '_username' => 'me@project.com',
        '_password' => '@mypass',
    );

$response = $this->buzz->post($url, $headers, $parameters);

I occurs only when @ is placed in first position in the string.

Do I need to encode datas in some way ? I've tried to urlencode it, it removes the exception but my API doesn't receive the right data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant