bash - Unix cUrl cookie login to a .jsp servlet page, request and save file requested -
i have tried export text file resulted request .jsp page java script enabled oracle bi publisher framework below command in unix:
curl 'http://server/xmlpserver/report.xdo&_xt=new+template+1&_xf=text' -h 'accept-encoding: gzip, deflate, sdch' -h 'accept-language: en-us,en;q=0.8' -h 'upgrade-insecure-requests: 1' -h 'user-agent: mozilla/5.0 (windows nt 6.1) applewebkit/537.36 (khtml, gecko) chrome/53.0.2785.116 safari/537.36' -h 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -h 'referer: http://server/xmlpserver/report.xdo' -h 'cookie: jsessionid=qq!11!22; ora_xdo_ui=en_us; jsessionid=qq!11; oracle.uix=0^^gmt+3:00^p' -h 'connection: keep-alive' --compressed -o test.txt
this command 'copy bash curl command' google chrome debugger , work syntax command use id jsession in cookie expire.
i need login on .jsp page generate cookie jsession=qq!11!22 , jsession=qq!11 (see above curl syntax google chrome).
for have used command: curl -c cookies.txt -d "user=user&pass=pass" http://server/xmlpserver/login.jsp, , generated 1 "jsessionid=qq!11;".
i need generate 1 more jsessionid=qq!11!22.
thanks!
Comments
Post a Comment