This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

WebCGI Trigger
#5
Your end device might expect some headers or some headers are not handled properly by it. You can try sending raw request without any headers like this:
Code:
ip = '192.168.5.176'
qs = '/cgi/WebCGI?1500101=account=apiuser&password=password&port=1&destination=15880270900&content=Hello'

sock = require('socket').tcp()
sock:settimeout(5)

res, err = sock:connect(ip, 80)
if res then
  sock:send('GET ' .. qs .. ' HTTP/1.1\r\n\r\n')
  res = sock:receive('*a')
  log(res, err)
end

Open dev tools in browser (F12), go to Network tab, right click the request and select "Copy headers". This data can be used to send exactly the same request from LM.
Reply


Messages In This Thread
WebCGI Trigger - by JXA - 10.01.2020, 22:21
RE: WebCGI Trigger - by Joep - 11.01.2020, 12:30
RE: WebCGI Trigger - by JXA - 12.01.2020, 20:50
RE: WebCGI Trigger - by JXA - 14.01.2020, 13:49
RE: WebCGI Trigger - by admin - 14.01.2020, 13:52
RE: WebCGI Trigger - by JXA - 14.01.2020, 20:53
RE: WebCGI Trigger - by admin - 15.01.2020, 08:40

Forum Jump: