How to run __doPostBack and catch download link in idHttp

时间:2016-07-11 22:22:04

标签: delphi delphi-xe indy idhttp

i have used idHttp.post() to login inside a site
then i posted my information to the download page which is something like an archive (needs start date, end date and etc) and then sent submit button post
when i open the final response code (after posting submit) i can see the links for download, but they are something like :

__doPostBack('DG_FileList$ctl03$LB_Download','')

after i click on the link (manually inside a browser), http analyzer shows another post like this :

__EVENTTARGET         DG_FileList$ctl03$LB_Download    

and i get redirected to a download.aspx page and download starts in the browser
i tried to Post this like other informations but i got an error for response code, am i doing something wrong ? can i even run the _doPostBack with post method ?
if not, what can i do ?
Thanks.

0 个答案:

没有答案