Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3485682
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:56:13+00:00 2026-05-18T10:56:13+00:00

Can anyone there please point me where did i go wrong with this? <?php

  • 0

Can anyone there please point me where did i go wrong with this?

<?php
if(!empty($_GET))
{
    if(isset($_GET['token']))
    {
        $token = $_GET['token'];

        $ch = curl_init('https://www.google.com/m8/feeds/');

        if($ch)
        {
            curl_setopt
            (
                $ch,
                CURLOPT_HTTPHEADER,
                array
                (
                /*  "Content-Type: application/x-www-form-urlencoded",*/
                    "Authorization: AuthSub token=\"{$token}\""
                )
            );
            curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
            //curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
            curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
            curl_setopt($ch,CURLOPT_HTTPGET,true);
            curl_setopt($ch,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);
            curl_setopt($ch,CURLOPT_HEADER,true);
            //curl_setopt($ch,CURLOPT_POST,true);

            $res = curl_exec($ch);

            echo $res.'<br />';
        }
    }
}

?>

And this is the link i m using to redirect user to google –

https://www.google.com/accounts/AuthSubRequest?scope=https://www.google.com/m8/feeds/&session=0&secure=0&next=http://www.etfaq.com/invite_friends.php%3Ftype%3Dgmail

It keeps giving me this –

HTTP/1.1 400 Bad Request 

Content-Type: text/html;
charset=UTF-8
Date: Sun, 28 Nov 2010 09:59:53 GMT
Expires: Sun, 28 Nov 2010 09:59:53 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1;
mode=block Server: GSE
Transfer-Encoding: chunked

Invalid request URI

Any idea anyone? I know i m wrong in one or more places, but my brain is not working, as i m trying with this for almost 4 hours 😀

Thanks,
Anjan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:56:13+00:00Added an answer on May 18, 2026 at 10:56 am

    Sorry my mistake 🙂

    I found out that i have to use

    curl_init(‘https://www.google.com/m8/feeds/default/full’);

    instead of

    curl_init(‘https://www.google.com/m8/feeds/’);

    Thanks,
    Anjan

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone happen to know if there is a token I can add to
Can anyone out there recommend a good online resource for CSS 'design patterns'? I
Can anyone tell me if there are RDBMSs that allow me to create a
Can anyone explain what advantages there are to using a tool like MSBuild (or
Can anyone recommend for/against the time-travel functions in postgresql's contrib/spi module? Is there an
Are there some help resources, or can anyone give me a brief Idea how
Are there any good recommendations anyone can provide for a good Javascript editor on
Is there a Regular Expression that can detect SQL in a string? Does anyone
Can anyone provide a clear explanation / example of what these functions do, and
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.