Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

GET with large query data

$
0
0

I am web api newbie (even HTTP newbie on low level), so please bare over with lack of knowledge and even basic terminology.

I client (e.g. WPF) need to get data from a web api server, the return data must be constructed based on some data (arguments) which the client provides.

Typically, this would be a GET method with the arguments given as query strings (http://MyServer/MyApp/Results/?arg1=something$arg2=somethingOther etc.).

The problem is that the size of the uri would be much bigger than maximum (some says 2048 bytes, I succeeded to get ok response with up to 64 kB in uri), I would need up to (perhaps more) than 1 MB in total for the arguments.

What to do then ?

Some people say: use PUT (or POST), can these methods return data ? If not, how can I follow a PUT by a GET which is correlated to the to the PUT ? (session ?)


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>