Please post this on orkut-os-client-php list. This happens because a bug on php-curl, when setting CURLOPT_CUSTOMREQUEST.
Comment line 27 on lib/orkut-3legged.php . It is also good to note that it usually happens on hostgator servers - are you using them ? Sometime ago, I tried to setup, and a second and not possible to solve problem appeared: hostgator server's ips are blacklisted on google, asking users to type captcha all the time. But the captcha generated is not the captcha orkut asks. It is the captcha issued by Google auth system, and a html is returned (instead of a standard json). Best Robson Dantas @robsondantas On Wed, Jun 15, 2011 at 2:06 PM, Aditya Hajare <adity...@gmail.com> wrote: > 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', '[{"method":"peo...', Array) > #1 /home/aditya43/public_html/forums/admincp/vb405/adiinviter_mvc/lib/ > class/orkut/services/friends.php(61): Orkut->execute() > #2 /home/aditya43/public_html/forums/admincp/vb405/adiinviter_mvc/lib/ > class/orkut/json/list_friends.php(32): Friends->execute() > #3 /home/aditya43/public_html/forums/admincp/vb405/adiinviter_mvc/lib/ > class/orkut/json/list_friends.php(42): GetOrkutUserInfo->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 opensocial-orkut@googlegroups.com. > To unsubscribe from this group, send email to > opensocial-orkut+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/opensocial-orkut?hl=en. > > -- You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com. To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.