Ah I see. My apologies. When you said *file*, I assumed you were trying to retrieve an object from Cloud Storage. This is simply attempting to systematically retrieve a public profile from a linkedin URL.
The error status *999* is commonly returned by linkedin <http://stackoverflow.com/a/27571486/5317173> servers in response to unauthorized requests. According to their Terms of Service <https://www.linkedin.com/static?key=pop%2Fpop_multi_currency_user_agreement&type=sub#pri-10>, the act of retrieving pages with software violates said terms. > Use manual or automated software, devices, scripts robots, other means or > processes to access, “scrape,” “crawl” or “spider” any web pages or other > services contained in the site; To get information from linkedin, it seems you must use their API <https://developer.linkedin.com/docs/rest-api>. Like many APIs, you'll need a Client ID <https://developer.linkedin.com/support/faq>, Client Secret Value, etc. I would suggest consulting that documentation before attempting further. Hope this helps and happy coding! 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/4269ea54-0f02-4b83-b446-e595d1419950%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
