Posted: Fri Jan 21, 2022 8:41 pm Post subject: How to postURL() with Header?
Hello everyone! I have a question: how to add header to your postURL()? Following documentation you should just add http.Header="smt" isn't it? I have tried it with simple webhook catcher and had no result, I can't see my header in request. While using Postman I can achieve it, add any header and value to it. What I am doing wrong?
Thanks in advance.
Code:
local http = GetInternet()
local url = SomeURL
local d = "Data"
http.Header = "TestHeaderKey: TestHeaderValue"
local response=http.postURL(url,"data="..d)
print(response)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum