HTTP Request Body with Integer

Hi There,

I know the body of a HTTP Post request is a string, but wondering if it’s even possible to include and integer in a body for sending?

Eg: one of the fields of the json body i’d like to send requires an integer as opposed to a string.

Many Thanks

{"Name": "ABC", "ID": 123 }

1 Like


Yes, it is absolutely possible to include an integer in the body of an HTTP POST request. The body of an HTTP POST request can contain data in various formats, such as JSON, XML, or plain text. If you’re sending JSON data in the request body, you can include an integer as one of the fields.

For example, if you’re using JSON as the data format,

“name”: “John Doe”,
“age”: 30,
“is_active”: true

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.