Tuesday, 22 May 2007

.bat&&http

I was wasting time on .bat and http these days.

i learn some stuff like:
start iexplore.exe url is used to open a browser with a given url
& in url is refer some variables in dynamic web, like jsp, asp, etc after ?
^ is used to escape the special char like &. we use \ in unix shell
we can do as in shell script using "" to quoto a statement, and in this quote we use %% to escape %

find out interface:
useing firefox to find out the infor of that form or post, then check out the post or ref with variable. there should be some encode, follow that and finish the whole url.

here is a easy .bat for opening several webs:
start iexplore.exe http://shaojianhua.bloggerspaces.com
start iexplore.exe http://dict.baidu.com
start iexplore.exe "https://www.google.com/accounts/ServiceLoginBoxAuth?continue=http%%3A%%2F%%2Fwww.blogger.com%%

2Floginz%%3Fd%%3D%%

252Fstart&service=blogger&nui=8&naui=8&fpui=2&uilel=3&skipvpage=true&rm=false&hl=zh_CN&alwf=true&roeu=https%%3A%%

2F%%2Fwww.blogger.com%%2Flogin.g&GA3T=H4Ef6yxjXys&Email=dustin.shaojianhua@gmail.com&Passwd=64737210"start iexplore.exe http://www.google.com
start iexplore.exe http://www.baidu.com
start iexplore.exe http://exchange2003

No comments: