su vb access ho questo codice
dove fileditesto.txtcodice:myURL = "http://www.miosito.it/fileditesto.txt" Set XMLHTTP = CreateObject("MSXML2.XMLHTTP") XMLHTTP.Open "GET", myURL, False XMLHTTP.send dapage dapage = XMLHTTP.responseText Set XMLHTTP = Nothing miaVar = Split(dapage, ";", -1, 0) testo.Value = miaVar(0)
data;dato1;dato2....
tutto ok su mio server
ma su aruba fileditesto.txt
come mai????codice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>The page cannot be displayed</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252"> <STYLE type="text/css"> BODY { font: 8pt/12pt verdana } H1 { font: 13pt/15pt verdana } H2 { font: 8pt/12pt verdana } A:link { color: red } A:visited { color: maroon } </STYLE> </HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD> <h1>The page cannot be displayed</h1> There is a problem with the page you are looking for and it cannot be displayed. This error can occur if you are trying to display an HTML page that resides in a directory that is configured to allow Execute or Script permissions only. <hr> Please try the following:</p> <ul>[*]Contact the Web site administrator if you believe this directory should allow read access.[/list] <h2>HTTP Error 403.2 - Forbidden: Read access is denied. Internet Information Services (IIS)</h2> <hr> Technical Information (for support personnel)</p> <ul>[*]Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.[*]Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Using Virtual Directories, Changing Default Web Site Settings, and About Custom Error Messages.[/list] </TD></TR></TABLE></BODY></HTML>

Rispondi quotando
