none
Can't download some files off the web using webclient.downloaddata. RRS feed

  • Question

  • I tried the following code:

    Dim fileData As Byte()
    
                Using client As WebClient = New WebClient()
                    fileData = client.DownloadData(URLstring)
                End Using

    It works in that it does get a response.  However the response is as follows:

    <html style="height:100%"><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta name="format-detection" content="telephone=no"><meta name="viewport" content="initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></head><body style="margin:0px;height:100%"><iframe id="main-iframe" src="/_Incapsula_Resource?SWUDNSAI=9&xinfo=13-14934814-0%200NNN%20RT%281566996202925%202%29%20q%280%20-1%20-1%20-1%29%20r%280%20-1%29%20B12%284%2c315%2c0%29%20U19&incident_id=701009990031909672-80268386142862973&edet=12&cinfo=04000000" frameborder=0 width="100%" height="100%" marginheight="0px" marginwidth="0px">Request unsuccessful. Incapsula incident ID: 701009990031909672-80268386142862973</iframe></body></html>

    Does this mean that the site administrators are blocking downloads via code?

    Thanks,

    Wednesday, August 28, 2019 12:49 PM

All replies

  • Maybe the WebSite offers the files to logged-in users only and disallows atypical access?

    You can also ask the Support of the WebSite providing the Incident ID for further examination.


    • Edited by Viorel_MVP Wednesday, August 28, 2019 1:44 PM
    Wednesday, August 28, 2019 1:43 PM