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

  • Thread starter Thread starter rameister
  • Start date Start date
R

rameister

Guest
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,

Continue reading...
 

Similar threads

K
Replies
0
Views
224
Khan345
K
Back
Top