Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Unprintable chars in headers led to response parsing error #20

Open
necromant2005 opened this issue Aug 27, 2015 · 1 comment
Open

Unprintable chars in headers led to response parsing error #20

necromant2005 opened this issue Aug 27, 2015 · 1 comment

Comments

@necromant2005
Copy link

The issue was in non-printable symbol between those 2 lines in response from moz blog. I suppose it was added as some kind of bots protection by your cdn provider.

$client = new \Zend\Http\Client();
$client->setOptions(array( 
   'sslverifypeer' => false,
   'adapter'         => 'Zend\Http\Client\Adapter\Curl',
));
$client->setUri('https://moz.com/ugc');
$response = $client->send(); // Invalid header value

The symbol is between: X-Iinfo && X-CDN headers
2015-06-30_0724

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-http; a new issue has been opened at laminas/laminas-http#24.

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

2 participants