PHP HttpRequest::setHeaders() converting my header names to camel case -
I have to send the following headline with my httpRequest:
'X-ABC-Rico-Token Has the following code:
$ array = array ("X-ABC-Reco-Token" => $ Tokens); $ This-> request> setHeaders ($ array); Echo var_dump ($ this-> request-> getHeaders ()); However, this is the output I received:
/ Pre>
"X-ABC-Reco-Token" => string 'a0d15 977'
Note that X-ABC has been converted to X-ABC.
Is there any way I want it to be a matter?
The other method in my mind passes from httpRequest and adds a method like "fix", by which the property of the class will be set where the http request is awaiting ABC by str_replace () apc for ABC Are doing (maybe "CuridaData"? - See).
Comments
Post a Comment