16.10.2015, 09:15
Your first request to login URL should look like this:
All further requests must pass the cookie received from the first request:
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
}
})