"Click" on button via WebRequest()

 

 Hi,


   I have an EA that is feed with a file wich need to be extracted from internet every day from a web site. To do this mannualy I need to click on a button in this site and the file is downloaded (picture bellow), but I would like to do this automatically, Using WebRequest() https://www.mql5.com/pt/docs/network/webrequest I am able to connect to the web site, but I didn't find how to send a "click" on button to download the file, has someone any idea? Thanks in advance. 


http://www.b3.com.br/pt_br/market-data-e-indices/servicos-de-dados/market-data/consultas/mercado-a-vista/opcoes/posicoes-em-aberto/posicoes-em-aberto.htm?dataConsulta=09/04/2019&f=0

 Buscar

Documentação sobre MQL5: Funções de rede / WebRequest
Documentação sobre MQL5: Funções de rede / WebRequest
  • www.mql5.com
Para usar a função WebRequest(), adicione os endereços dos servidores necessários na lista de URLs permitidos na guia "Expert Advisors" da janela "Options". A porta do servidor é automaticamente selecionada com base no protocolo especificado - 80 para "http://" e 443 para "https://". A função WebRequest() é síncrona, o que significa que...
 
You need to understand how requests for sites are formed, I advise you to follow this link, there you can test various requests for sites and see what kind of answer you will receive.
Also, you should understand that "Click" is just a button, and the site to leave a line of this type http://www.clicl.com?val=Hello&Last=Pito...   etc.
Reason: