Sign in to follow this  
Followers 0

Download with Post metod

1 post in this topic

I'm totally lost here, need help

How to Download a File with Post metod

The page I'm Using {the number will change each time}

HTML code below

<FORM method=post name=EmitirExtratoEscalaForm action=/carga-web/>

<INPUT value=true type=hidden name=voltarInicioFuncao _png_class>


<P><LABEL for=nrEscala>Número da Escala : </LABEL>

<INPUT class=txtgeral onkeyup="return VerifyENTERPressed(this,event)" value=09000375571 maxLength=11 size=14 name=nrEscala _png_class="txtgeral">



<P class=botoes><IMG style="CURSOR: hand" onmouseover="javascript:this.src='./images/pt_BR/enviar_ov.gif';'hand'" onmouseout="javascript:this.src='./images/pt_BR/enviar.gif';" onclick="document.forms['EmitirExtratoEscalaForm'].submit()" name=enviar src="./images/pt_BR/enviar.gif" _png_class> &nbsp;&nbsp; <IMG style="CURSOR: hand" onmouseover="javascript:this.src='./images/pt_BR/limpar_ov.gif';'hand'" onmouseout="javascript:this.src='./images/pt_BR/limpar.gif';" onclick=javascript:limparCampos(); border=0 src="./images/pt_BR/limpar.gif" _png_class>



The result when I submit is a file to download with the name: relatorioEscala.pdf (Alwas same name)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0