Curl error: Couldn't resolve host 'accounts.google.com'

2,677 views
Skip to first unread message

Kothalikar Kanaiah

unread,
Apr 5, 2012, 1:56:49 PM4/5/12
to oauth...@googlegroups.com
hello,
 
Am new to google oauth and am using web server authentication...
am using php to send a post request using curl to recieve access token....
but there unable to get the response.... so i request you to help me in this matter...

Naveen Agarwal

unread,
Apr 5, 2012, 9:27:13 PM4/5/12
to oauth...@googlegroups.com

Have you looked at this?
http://code.google.com/p/google-api-php-client/
I recommend using a library.

Kothalikar Kanaiah

unread,
Apr 6, 2012, 2:22:15 AM4/6/12
to oauth...@googlegroups.com
Thanks Naveen for your quick response...
I had a glance at the library and tried to use but the result is the same i.e., "Couldn't resolve host 'accounts.google.com'' in /home/ivrsx10b/public_html/google-api-php-client/src/io/apiCurlIO.php:"
Hope this problem gets quickly resolved...!

Thank you Naveen.

Naveen Agarwal

unread,
Apr 6, 2012, 9:45:36 AM4/6/12
to oauth...@googlegroups.com
Seems like this may be an issue with some network settings on that machine (or on the network the machine is on). Can you go to accounts.google.com on that machine is a browser? Can you try "host accounts.google.com" or "nslookup accounts.google.com". Check the hosts file.
and try the same code from a different machine on a different network.

Thanks

Naveen
Reply all
Reply to author
Forward
0 new messages