Sign In Register

How can we help you today?

Start a new topic

How to set the body of Spark.getHttp?

I am building some of the backend services for my game on Azure and I need the ability to send a Http get with a body for the request. The service will then send a response based on the body of the request. I am unable to find a way to set the body of the request in the documentation.


It looks like I may be able to use putJson or postJson but this would be a hack since I am not creating or updating anything on the server. I am just trying to get a response based on a json request.


I was able to do this in a Post this is working fine for me now.

Spark.getData().REQUEST_BODY

Use this in your cloud code to get the body of a POST made.

Login to post a comment