는 편집 : 거 야 더 구체적으로. 매일 파일 그룹을 다운로드하는 스크립트를 만들고 싶습니다. 프로그래밍 방식으로이 작업을 수행하려면 javascript 단추를 클릭해야합니다. WebRequest 클래스에 URL을 넣을 때 간단하지만 javascript 단추에는 URL이 없습니다. 이 URL을 어떻게 마운트 할 수 있습니까? (피들러에 의해)파일 다운로드
요청 :
POST /SomeSite?Something.aspx HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://www.Site.com/Stackoverflow/SomeSite?Something.aspx
Accept-Language: pt-BR
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: www.Site.com
Content-Length: 10616
Connection: Keep-Alive
Pragma: no-cache
Cookie: idioma=pt-br; WT_FPC=id=187.16.81.13-3324702672.30186643:lv=1320587789589:ss=1320587578749
__EVENTTARGET=ctl00%24contentPlaceHolderConteudo%24lnkDownloadArquivo&__EVENTARGUMENT=&__VIEWSTATE=%BlaBlaBla
자바 스크립트와 파일을 다운로드? 그리고 클라이언트에서 내용을 가져 오면이 파일로 무엇을 할 계획입니까? –
그 질문은별로 의미가 없습니다. 분명히 해줄 수 있니? – JohnFx
내 컴퓨터에 저장하십시오. – Makah