I am using orkut's php open social client v1.0 located at :
http://code.google.com/p/orkut-os-client-php/downloads/list
At first it was giving me Length Required error so i fixed it by
writing $headers[] = 'Content-Length: '.strlen($postBody);
After specifying it manually, it is taking so much time to load and
then i am getting Empty Server Response  exception in curl-post
request.. Below are the details :
<br />
<b>Fatal error</b>:  Uncaught exception 'Exception' with message 'HTTP
Error: Empty reply from server' in /home/aditya43/public_html/forums/
admincp/vb405/adiinviter_mvc/lib/class/orkut/lib/orkut-3legged.php:55
Stack trace:
#0 /home/aditya43/public_html/forums/admincp/vb405/adiinviter_mvc/lib/
class/orkut/lib/orkut-3legged.php(394): CurlRequest::send('http://
www.orku...', 'POST', '[{&quot;method&quot;:&quot;peo...', Array)
#1 /home/aditya43/public_html/forums/admincp/vb405/adiinviter_mvc/lib/
class/orkut/services/friends.php(61): Orkut-&gt;execute()
#2 /home/aditya43/public_html/forums/admincp/vb405/adiinviter_mvc/lib/
class/orkut/json/list_friends.php(32): Friends-&gt;execute()
#3 /home/aditya43/public_html/forums/admincp/vb405/adiinviter_mvc/lib/
class/orkut/json/list_friends.php(42): GetOrkutUserInfo-&gt;execute()
#4 {main}
  thrown in <b>/home/aditya43/public_html/forums/admincp/vb405/
adiinviter_mvc/lib/class/orkut/lib/orkut-3legged.php</b> on line
<b>55</b><br />

When i specify 'Content-Length: 0', i'm getting 405: Method Not
Allowed error.
I am hosted on hostgator server and even tried commenting/removing
followoing line from the send() function located in
orkut-3legged.php :
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);

I am still getting same errors. If anyone know the solution to this
problem then kindly let me know.
Is the people.get method suppose to be accessed by GET request as
specified here : 
http://opensocial-resources.googlecode.com/svn/spec/1.1/Core-API-Server.xml#urlAddressing
If so then why is it a POST request in php client i am using?
Also, if it is suppose to be a GET request to that method then what
changes should be made in orkut's osapi php client i am using?
Kindly Help...!!

Regards
Aditya Hajare

-- 
You received this message because you are subscribed to the Google Groups 
"orkut Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en.

Reply via email to