Thanks for sharing this finding here. I cannot yet reproduce this warning
with the code sample provided above. This
<https://gist.github.com/ngelinas/3e2973ec0c9236996dc6c80a5d6f6769> is the
original code I used. The test file used was a 32KB text file of Lorem
Ipsum.
I get the complete file when testing this. Using Stackdriver Trace, one
can inspect the underlying URL Fetch call made to Cloud Storage.
- What response status code do you get with that underlying URL Fetch
call?
- How large is the file being fetched? I suspect this may affect the
response code if Cloud Storage responds with a 206 splitting the file.
On Friday, July 29, 2016 at 7:20:11 AM UTC-4, Ken Walker wrote:
>
> Hello,
>
> Why we are getting this warning + we are not getting full content from the
> file by GAE app so, can you please check and correct me, please check below
> code that we are using with GAE app
>
> -----------------------------------------
> $opts = array('http'=>array(
> 'method'=>"GET",
> 'header'=>"Accept-language: en\r\n" .
> "Accept-Encoding: gzip, deflate, br\r\n",
> 'user_agent'=>"User-Agent: my agent\r\n" // i.e. An
> iPad
> )
> );
>
> $context = stream_context_create($opts);
> $content = file_get_contents($url ,false,$context);
> -----------------------------------------
>
> Thanks in advance!
> - Ken Walker
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/affbef38-7ca3-4df8-94ca-e71c5737fd4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.