Thank you for your replay

As we have faced that with linkedin public profile url, please check it 
below
------------------------------
$url ='https://www.linkedin.com/in/amitgupta007'
$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!

On Tuesday, August 2, 2016 at 11:28:34 PM UTC+5:30, Nicholas (Google Cloud 
Support) wrote:
>
> 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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/73efe19c-683b-4d16-b9dc-92dc5918abca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to