473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

distant file

hi,

On my compagny, I have a ASP web server. In ASP, I'd like to open the
generated HTML) of the pages on my server. If I either try :
Set file = fs.OpenTextFile(http://server/site/index.asp, ForReading)
or
Set file = fs.GetFile(http://server/site/index.asp)

Well, it's not working.
Does anyone know how to do ? or another method to get the generated HTML of
my web site?

Thks
Matrix
Jul 19 '05 #1
3 2567
Matrix wrote on 10 jul 2003 in microsoft.public.inetserver.asp.general:
On my compagny, I have a ASP web server. In ASP, I'd like to open the
generated HTML) of the pages on my server. If I either try :
Set file = fs.OpenTextFile(http://server/site/index.asp, ForReading)
or
Set file = fs.GetFile(http://server/site/index.asp)

Well, it's not working.
Does anyone know how to do ? or another method to get the generated
HTML of my web site?


clientside javascript:

<script>
function getUrl(url) {
var http = new ActiveXObject("microsoft.xmlhttp");
http.open("GET",url,false);
http.send();
return http.responseText;
}
html=getUrl("http://server/site/index.asp")
</script>

Perhaps you can do this serverside too ????

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
> clientside javascript:

<script>
function getUrl(url) {
var http = new ActiveXObject("microsoft.xmlhttp");
http.open("GET",url,false);
http.send();
return http.responseText;
}
html=getUrl("http://server/site/index.asp")
</script>

Perhaps you can do this serverside too ????


indeed. Based on your code, I found something that works:

Set file = Server.CreateObject("Microsoft.XMLHTTP")
file.Open "GET", "http://server/site/index.asp", False
file.Send
response.Write file.responseText

Have fun,
Matrix
Jul 19 '05 #3
But now, I have a strange problem. I'm french, and so, I use french letter
such as é, è, à
When I run the code, every time I have a "french" letter, the system replace
it and the 2 following letters by 1 question mark '?'
Does anyone have an idea of what's happening, and how I could resolve it ?

Thks,
Matrix
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
4
by: puzzlecracker | last post by:
I have encountered certain confusion while scrutinizing the long distance friendship engendering violation of encapsulation. If object (be it a class, variable, function, etc) has an internal...
4
by: Peter Larsson | last post by:
Hello everybody, I'm developing a system for a company that has production at two different locations. The production is stored in an Access database at each location, and I need to find a way...
1
by: Milos Puchta | last post by:
Hi to All, I need to install .NET 2003 on the distant PC. Using RDP I copied CD1+2+Prerequisites on the hard disk, say in d:\source\vs\cd1 d:\source\vs\cd2 d:\source\vs\prereq After I have...
11
by: Christian | last post by:
Hi, I have a small problem about distant compilation and float literals. Here is my program : #include <stdio.h> void main() { float f; double d; f = 0.5;
4
by: Claire DURAND | last post by:
Hi, I try to open a distant (not local) XML file in PHP to read an RSS feed. I can open an HTML page and read it with the file() function. But as soon as I try with a RSS feed instead of...
1
by: Nicolas | last post by:
Hello, On a Windows platform (XP SP2), using Wampserver 2.0, each time I try to access a distant file with PHP: $contents =...
4
by: pavanip | last post by:
Hi , I have a problem with importing database from local system to web hosting server. can you Please tell me the steps to import database from local machine to web hosting server.I am using Sql...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.