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.

SMS text via DWR-921 4G LTE Router
#6
Your first request to login URL should look like this:
Code:
res, code, hdr = socket.http.request('http://...')
if hdr['set-cookie'] then
  cookie = hdr['set-cookie']:split(';')[ 1 ]
end

All further requests must pass the cookie received from the first request:
Code:
res = socket.http.request({
  url = 'http://...',
  headers = {
    Cookie = cookie
  }
})
Reply


Messages In This Thread
RE: SMS text via DWR-921 4G LTE Router - by admin - 16.10.2015, 09:15

Forum Jump: