Skip to content
This repository was 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

@sushicodeur

Description

@sushicodeur

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' => '[email protected]',
        '_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions