You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
[Discussion] Is there a way to do post requests in Live editor?
I'm trying to make a post request to a server in the live editor, but I can't find a way to do it.
Now I am using the os.execute function to run a curl command, It will pop up a terminal window and run the command. It's very inconvenient and ugly.
like this:
-- POST to APIlocalurl="http://localhost:8888/api"localdata="data=data"localcommand=string.format("curl -X POST -d \"%s\" %s", data, url)
Log(command)
localres=os.execute(command)
I want to know if there is another way to do post requests?
Thank you!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[Discussion] Is there a way to do post requests in Live editor?
I'm trying to make a post request to a server in the live editor, but I can't find a way to do it.
Now I am using the
os.execute
function to run a curl command, It will pop up a terminal window and run the command. It's very inconvenient and ugly.like this:
I want to know if there is another way to do post requests?
Thank you!
The text was updated successfully, but these errors were encountered: