473,668 Members | 2,583 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 2576
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
3923
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
5451
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
1357
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
2831
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
1151
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
1692
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
3281
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
1702
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
2992
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
8462
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
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8583
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8656
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
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
4205
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
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2791
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
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.