Issues

ZF-2019: Zend_Http_Client->setHeaders() is too strict...

Description

setHeaders() checks the header name to make sure it's valid. Some vendors, such as SWSoft provide a API that requires several non-standard HTTP headers. I attached a patch to make it strict/not strict

Comments

I'd suggest that instead of adding strict mode settings that instead the job of adding http compliant headers be left up to the programmer. At the least, we shouldn't purposefully make sw-softs api incompatible, and at the best, the regexp just isnt needed and is only extra processing and weight.

I'd change the patch to remove the check.

Assigned to Shahar

Should now be fixed in r. 6648. You can disable header name checking by passing the 'strict' => 'false' configuration option to the client.