Mantis - Quercus
Viewing Issue Advanced Details
4442 block always 03-20-11 08:24 06-21-12 14:09
le_mig  
nam  
normal  
closed 4.0.7  
fixed  
none    
none  
0004442: Curl HTTPS incompatibility with GAE and Facebook
Google Apps Engine cannot handle any HTTPS requests from Quercus Curl.

Curl HTTP requests are handled without error through GAE.

HTTP requests with an access_token are rejected by Facebook.

HTTPS requests will only successfully pass through GAE to Facebook using the URLFetchService - NOT Curl.
http://quercus-https.appspot.com [^] - is a quick demo walkthrough of how GAE and Facebook respond to Curl as HTTPS and Access_Token are enabled and disabled.

The following CURL options (and others) have been variously attempted without any effect on the error as described:
CURLOPT_HEADER, CURLOPT_POSTFIELDS, CURLOPT_CONNECTTIMEOUT, CURLOPT_RETURNTRANSFER, CURLOPT_TIMEOUT, CURLOPT_USERAGENT, CURLOPT_SSL_VERIFYPEER, CURLOPT_SSL_VERIFYHOST, CURLOPT_SSLVERSION(error:unknown), CURLOPT_PROTOCOLS (CURLPROTO_HTTP/CURLPROTO_HTTPS - error:unknown),
 examples.php [^] (6,102 bytes) 03-20-11 08:24

Notes
(0005132)
le_mig   
03-20-11 10:25   
Version should be modified to: 4.0.11 - thank you.
(0005915)
nam   
06-21-12 01:12   
Unable to reproduce on 4.0.29 (upcoming).

$options:
array(2) {
  [10002]=>
  string(33) "https://graph.facebook.com/naitik" [^]
  [10015]=>
  string(38) "method=GET&access_token=foobar"
}

response:
{"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190}}
(0005926)
nam   
06-21-12 14:09   
Just to clarify, please try 4.0.29 when it comes out. It has a lot of fixes for GAE.