16.10.2015, 08:33
(15.10.2015, 07:28)admin Wrote: Have you tried sending these requests from your browser or from LM?
First off all i figure out that it needs a third post in order to send the sms (GET http://192.168.16.1/sms2.htm?Ncmd=2)
I have tested it from several browsers and from LM and it works just for the first time.
I think it has to do with cookies...
On my http sniffer i get some changes everytime i login on routers web interface. The header has a definition "cookies" (AMSESSIONID) that changes in every session.
Now I think i need a way to grab that AMSESSIONID and use it on further requests.
Code:
Accept: */*
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,el;q=0.6
Cookie: ID=AMIT0000; AMSESSIONID=7737225
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Code:
Accept: */*
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,el;q=0.6
Cookie: ID=AMIT0000; AMSESSIONID=8449948
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36