Re: [google-appengine] error when use file_get_contents on gae for php

2013-06-20 Thread Vinny P
On Wed, Jun 19, 2013 at 1:07 AM, Chun-Ta Kung wrote: > Even I use the simplest code, I will get the same error. > file_get_contents('http://www.google.com'); > ?> > > Any idea? > > Hello Chun-Ta, +1 on Amy's suggestion, that your local computer is most likely having difficulties with DNS reso

Re: [google-appengine] error when use file_get_contents on gae for php

2013-06-19 Thread Amy Unruh
It sounds like your computer might be having trouble resolving hostnames-- have you noticed any other indications of that? On 19 June 2013 16:07, Chun-Ta Kung wrote: > Hi, > > I tested the sample code on this page: > https://developers.google.com/appengine/docs/php/urlfetch/ > > the script is l

[google-appengine] error when use file_get_contents on gae for php

2013-06-19 Thread Chun-Ta Kung
Hi, I tested the sample code on this page: https://developers.google.com/appengine/docs/php/urlfetch/ the script is like this: $data = array('data' => 'this', 'data2' => 'that'); $data = http_build_query($data); $context = array("http"=> array( "method" => "get", "hea