Sorry about posting at wrong place... I did comment/remove CURLOPT_CUSTOMREQUEST but still i was getting the same problem. How come hostgator ips are blocked by google? i did inquired hostgator about ip blocking but they said there is no such thing happened with their ips. Google contacts API is working fine for me... so there must be something wrong in library's code itself... I checked on many websites and same osapi lib is not working for them... the only place i saw it work is on dxbai!! i am sure they have fixed/modified it a lot... the only problem is we are unable to do so... As specified in opensocial RPC specs, the get friends request is always GET but in osapi lib, it is implemented as POST request... there are many such things confusing me a lot.. Is there any explanation on stack trace i have posted above? please help...
On Jun 15, 11:04 pm, Robson Dantas <[email protected]> wrote: > 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 <[email protected]> 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-Serv... > > 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. -- 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.

