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:  
  "X-ABC-Reco-Token" => string 'a0d15 977'   
/ Pre>

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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -