Hi ! There is a bug on php-curl when specifying CURL_CUSTOMREQUEST. What you have to do in this case is removing this line on orkut-3legged.php:
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); Most servers people in India use, like hostgator, have this bug. Give it a try and let me know. Robson Dantas @robsondantas On Sun, Jun 12, 2011 at 1:13 AM, Aditya Hajare <adity...@gmail.com> wrote: > I am using orkut osapi PHP client library... i did not changed anything in > it yet.. just specified required credentials in global.php and tried to test > the client.. > At first, it was giving me Content-Length header is missing error.. I fixed > it by manually adding Content-Length: 0 header in it's send() function which > makes the CURL calls... > Now it is giving me 405 Method Not Allowed error... > Bellow is the POST request response i have received : > > [http_code] => 405 > [data] => HTTP/1.1 405 Method Not Allowed > Content-Type: text/html; charset=UTF-8 > Content-Length: 12463 > Date: Sun, 12 Jun 2011 04:10:35 GMT > Server: GFE/2.0 > > I am using orkut php client library located at : * > http://code.google.com/p/orkut-os-client-php/downloads/list*<http://code.google.com/p/orkut-os-client-php/downloads/list> > If someone knows what's going wrong in there, please let me know..!! > > Regards > Aditya Hajare > > -- > You received this message because you are subscribed to the Google Groups > "orkut Developer Forum" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/opensocial-orkut/-/lQtbgAFC_7IJ. > 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.