java - URL Size in Google App Engine -


i calling servlet in app hosted on gae. issue having request url greater 2048 characters , getting 400 bad request error. while here mentioned can make request 10mb of data. how can send request 10mb of data? using free quota. similar question asked long ago not answered yet.

appengine limits aside, doesn't make sense put 10mb of data in url.

when take @ http protocol, get-request looks this

get /path/to/resource?possibleparam=value http/1.1 host: www.example.com 

a post-request this

post /path/to/resource?possibleparam=value http/1.1 host: www.example.com content-type: */*; charset=utf-8 content-length: 4242  here come actual data length of 4242 bytes 

so if allow large amounts of data in uri of get request mean server doesn't know how memory has allocate in order receive whole uri. better performance come quite natural 1 restrict length of get requests , force use post request instead content-length must made known before sending bulks of information.

let's take @ comments other stackoverflow users

tx802 said:

post data?

alex martelli, refering maximum allowed url length, said:

it never extended 10 mb -- calls post or put (where data goes in body, not url!)

that should make sense now, because protocol-wise doesn't make sense push megabytes of data uri.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -