Using request["data"] in doGet() python resource in Web Dev

I’m trying to receive a list or dictionary using request[“data”] in doGet() python resource but not sure how to send data to the resource

GET requests do not (cannot) have a body; you need to use URL parameters (and thus, request["params"]) to pass data to a GET endpoint.

Query parameters go into the URL directly; start query params with a ?, separate them with & and, if necessary, URL-encode any non-basic-ASCII values:

1 Like

can POST request have a body?
how can we use request[“data”]?

Yes, POST requests accept an incoming body. There are examples here on the forum.

1 Like