We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When doing a POST request with 2 parameters:
return $this->perform($client->post("/authenticate",null, array( "username" => 'radupass', "password" => '@alcool', //starting with an @ )));
where $client:
public function getClient() { if ($this->_client === null) { $this->_client = new Guzzle\Service\Client($this->baseUrl, $this->_options); $this->_client->setDefaultHeaders(array( "X-WebsiteId" => $this->websiteId, "X-AccessToken" => $this->accessToken, )); } return $this->_client; }
I get the following exception:
2013/05/29 11:08:29 [error] [exception.Guzzle\Common\Exception\InvalidArgumentException] exception 'Guzzle\Common\Exception\InvalidArgumentException' with message 'Unable to open lcool for reading' in /home/xxx/site/vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFile.php:58 Stack trace: #0 /home/xxx/site/vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFile.php(25): Guzzle\Http\Message\PostFile->setFilename('@lcool') #1 /home/xxx/site/vendor/guzzle/guzzle/src/Guzzle/Http/Message/EntityEnclosingRequest.php(245): Guzzle\Http\Message\PostFile->__construct('password', '@lcool', NULL) #2 /home/xxx/site/vendor/guzzle/guzzle/src/Guzzle/Http/Message/EntityEnclosingRequest.php(273): Guzzle\Http\Message\EntityEnclosingRequest->addPostFile('password', '@lcool', NULL, false) #3 /home/xxx/site/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php(127): Guzzle\Http\Message\EntityEnclosingRequest->addPostFiles(Array) #4 /home/xxx/site/vendor/guzzle/guzzle/src/Guzzle/Http/Client.php(256): Guzzle\Http\Message\RequestFactory->create('POST', 'http://api.subs...', Object(Guzzle\Common\Collection), Array) #5 /home/xxx/site/vendor/guzzle/guzzle/src/Guzzle/Http/Client.php(336): Guzzle\Http\Client->createRequest('POST', '/authenticate', NULL, Array) #6 /home/xxx/site/frontend/components/SubServerClient.php(117): Guzzle\Http\Client->post('/authenticate', NULL, Array) #7 /home/xxx/site/frontend/components/UserIdentity.php(15): SubServerClient->authenticate('radupass', '@lcool') #8 /home/xxx/site/frontend/models/LoginForm.php(59): UserIdentity->authenticate() #9 /home/xxx/site/frontend/models/LoginForm.php(71): LoginForm->authenticate(false, false) #10 /home/xxx/site/frontend/controllers/SiteController.php(198): LoginForm->login() #11 /home/xxx/site/vendor/yii/framework/web/actions/CInlineAction.php(49): SiteController->actionSignup() #12 /home/xxx/site/vendor/yii/framework/web/CController.php(308): CInlineAction->runWithParams(Array) #13 /home/xxx/site/vendor/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction)) #14 /home/xxx/site/vendor/yii/framework/web/filters/CFilter.php(40): CFilterChain->run() #15 /home/xxx/site/vendor/yii/framework/web/filters/CFilterChain.php(130): CFilter->filter(Object(CFilterChain)) #16 /home/xxx/site/vendor/yii/framework/web/filters/CFilter.php(40): CFilterChain->run() #17 /home/xxx/site/vendor/yii/framework/web/filters/CFilterChain.php(130): CFilter->filter(Object(CFilterChain)) #18 /home/xxx/site/vendor/yii/framework/web/CController.php(291): CFilterChain->run() #19 /home/xxx/site/vendor/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array) #20 /home/xxx/site/vendor/yii/framework/web/CWebApplication.php(282): CController->run('signup') #21 /home/xxx/site/vendor/yii/framework/web/CWebApplication.php(141): CWebApplication->runController('site/signup') #22 /home/xxx/site/vendor/yii/framework/base/CApplication.php(168): CWebApplication->processRequest() #23 /home/xxx/site/public/index.php(157): CApplication->run() #24 {main}
The text was updated successfully, but these errors were encountered:
Seems to be an issue with cURL itself.
Sorry, something went wrong.
No branches or pull requests
When doing a POST request with 2 parameters:
where $client:
I get the following exception:
The text was updated successfully, but these errors were encountered: