473,573 Members | 2,503 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 2573
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
3912
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...
5
5440
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
1353
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...
4
2827
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...
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
1685
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
3279
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
1698
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
2988
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. ...
0
7668
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...
0
7983
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. ...
1
7735
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...
0
8035
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...
0
6356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5556
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...
0
3698
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...
1
1269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
992
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...

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.