I have a whole series of curl commands that I would like convert into ob-http
code blocks in a org file (second choice would be to do them in restclient
).
Here is a simplified sample command:
curl -X POST
--proxy http://my-proxy.local:9001 \
--data "foo=bar" \
--data "fizz=buzz" \
--header "Content-Type:application/x-www-form-urlencoded" \
--header "my-custom-header" \
http://my-server.local/my/endpoint
(The resulting json passed back by this call would be used in the next call)
How can I convert the above into ob-http
code block (or, restclient
text file if ob-http
cannot support)
I found this old question, but it does not fully cover my use case, and I didn't see in the linked docs how to accomplish the above conversion: How to test REST API with Emacs?