473,910 Members | 7,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2581
Matrix wrote on 10 jul 2003 in microsoft.publi c.inetserver.as p.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.xmlht tp");
http.open("GET" ,url,false);
http.send();
return http.responseTe xt;
}
html=getUrl("ht tp://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.xmlht tp");
http.open("GET" ,url,false);
http.send();
return http.responseTe xt;
}
html=getUrl("ht tp://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.CreateOb ject("Microsoft .XMLHTTP")
file.Open "GET", "http://server/site/index.asp", False
file.Send
response.Write file.responseTe xt

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
3939
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 them a caption, storing the caption and filename in a text file. It's a bit buggy when removing the photos and captions from the file, and also in displaying them on the delete page. you can see it in action at www.4am.com.au/gallery/upload.php...
5
5475
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. I want to develop a webpage where people can send attachments that are stored on their local PC.
4
1364
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 linkage let's say defined in the .c file or with a word static (by the way definition of anything in .c imply internal linkage?). And the same name object is defined with external linkage; let's say in the .h file. The question is whether there is a...
4
2859
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 to fetch data from both these databases and present them to the boss (who is at one of the locations). I've built a report generator in Excel (using VBA) that fetches data via ODBC from the database that's located in the same building. However, I...
1
1156
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 started installation from
11
1708
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
3293
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 HTML and I try to read or open with file() or fopen(), it doesn't work, I have the following errors :
1
1716
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 = file_get_contents("http://www.google.fr/intl/fr_fr/images/logo.gif"); or copy("http://www.google.fr/intl/fr_fr/images/logo.gif", "logo.gif"); or any other function,
4
3003
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 Server 2000 in my system.can we import database without using Business intelligence development. If anyone have any idea please solve my problem. Thanks in advance Pavani
0
10037
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9879
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8099
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7250
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5939
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6142
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3360
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.