Skip to content

Is there a way to add post request script with a POST with a request body? #517

Closed Answered by boltlessengineer
chardskarth asked this question in Q&A
Discussion options

You must be logged in to vote

It is supported as well! Sorry for late reply. I should really figure out way to get general notifications about discussions.

POST https://ijhttp-examples.jetbrains.com/post
Content-Type: application/x-www-form-urlencoded

field1=value%+value&field2=value%&value

# @lang=lua
> {%
local body = vim.json.decode(response.body)
client.global.set("origin", body.origin)
%}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chardskarth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants