Xiija Posted February 24, 2015 Share Posted February 24, 2015 **The response body is limited to 2048 bytes by default; if it is longer it will be truncated.** I have a response body that is longer than this, is there any way toget just a certain portion of a google doc? would it be better to use a spreadsheet/chart etc? Link to comment Share on other sites More sharing options...
Ohjiro Watanabe Posted February 24, 2015 Share Posted February 24, 2015 The way I do it is to have a process run externally to grab the web page and parse it to get the info I need. I am doing a google search which may return up to 20 pages and I need just one line of it. My external process is hosted free on Appharbour.com which is a .net platform. Google Apps would be an alternative to run python and I think perl. Link to comment Share on other sites More sharing options...
Freya Mokusei Posted February 24, 2015 Share Posted February 24, 2015 Echoing Ohjiro, the best way to do this is going to be to control the output at the web-side. Most hosting platforms - but probably not Google Docs (it's not really a host) - allow you to run functions against the page you're outputting. It'd be trivial to just count the number of characters and trim at 2048. Far as I can imagine, best route will be to skip on Google Docs. It's not really a trustable platform for scripted lookups and in all likelihood exposes the data you're passing to third parties (at least Google, anyway). Link to comment Share on other sites More sharing options...
Nova Convair Posted February 24, 2015 Share Posted February 24, 2015 The response body is max. 16384 for a mono script. If that isn't enough you need an external solution to solve it. Just read the description in teh wiki for llHttpRequest and use the HTTP_BODY_MAXLENGTH parameter. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now