indy - idHttp Get + Delphi + The requested URL was rejected -


i'm trying run code:

var   objhttp: tidhttp; ...   objhttp.handleredirects := true;   objhttp.allowcookies := true;   sget := objhttp.get('http://www.bmf.com.br/arquivos1/arquivos_ipn.asp?idioma=pt-br&status=ativo'); ... 

and i'm getting this:

<code>    <html>       <head>          <title>request rejected</title>       </head>       <body>the requested url rejected. please consult administrator.<br>your support id is: 109088803187671168</body>    </html> </code> 

any idea why?

solution, tlama:

var   objhttp: tidhttp;   ...   objhttp.handleredirects := true;   objhttp.allowcookies := true;   objhttp.request.useragent := 'mozilla/5.0';   sget := objhttp.get('http://www.bmf.com.br/arquivos1/arquivos_ipn.asp?idioma=pt-br&status=ativo');   ... 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -