wget, epoch time & GET requests -


i need able mimic following get request using wget unsure how so.

i need able set epoch of day script executed start time of 12:01 a.m. , end time of 11.59 p.m. example date of 2014/01/16 (yyyy/mm/dd) , time of 12:01 a.m. 1400241660

the request needs have following keys.

key request accept referer accept-language accept-encoding user-agent host dnt connection cookie 

with following values appropriate epoch time appended start , end date time.

value /archive.cgi?cmd=query&ca=255&start_time=1400284860&end_time=1400371140&dst=2&level=0&username=qwrtaw4=&rnd=6812 http/1.1 */* http://192.168.1.199:8080/export.html en-us gzip, deflate mozilla/5.0 (compatible; msie 10.0; windows nt 6.2; wow64; trident/6.0; maarjs) 192.168.1.199:8080 1 keep-alive mosalanguage=0; dusername=qwrtaw4%3d; dpassword=mdawmdaw; session= 

edit

at suggestion of martin, tried following curl command 404

curl -c cookie.txt --url "http://192.168.1.199:8080/archive.cgi?" --data "cmd=query&ca=255&start_time=1400284860&end_time=1400371140&dst=2&level=0&username=qwrtaw4=&rnd=681" 

look curl, can need regard cookies, headers, etc... i'm not sure wget can.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -