PHP Classes

accept-encoding?

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  PHP OAuth Tutorial on...  >  All threads  >  accept-encoding?  >  (Un) Subscribe thread alerts  
Subject:accept-encoding?
Summary:Does this API allow accept-encoding?
Messages:4
Author:Will Huang
Date:2013-01-14 07:43:27
Update:2013-01-15 04:38:55
 

  1. accept-encoding?   Reply   Report abuse  
Picture of Will Huang Will Huang - 2013-01-14 07:43:27
Just wondering if this implementation allow custom HTTP headers such as accept-encoding to be sent to the OAuth server?

  2. Re: accept-encoding?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-01-14 11:44:01 - In reply to message 1 from Will Huang
It can, just did not find an OAuth server that requires specific encoding. Are you trying to access a known OAuth server that requires it? If so, what is it?

  3. Re: accept-encoding?   Reply   Report abuse  
Picture of Will Huang Will Huang - 2013-01-14 23:53:20 - In reply to message 2 from Manuel Lemos
Well in the scoop.it API they prefer you to send with accept-encoding:gzip inflate header

  4. Re: accept-encoding?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-01-15 04:38:55 - In reply to message 3 from Will Huang
Oh, I see. That makes sense if the HTTP client can unpack responses compressed responses. The HTTP class does not yet support compressed responses. When it does, it will send that header automatically.