Jump to content

HttpRequest and body length


Xiija
 Share

You are about to reply to a thread that has been inactive for 3416 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

**

  • 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 to

get 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

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

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

You are about to reply to a thread that has been inactive for 3416 days.

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
 Share

×
×
  • Create New...