Solved

File Exist Over WWW

Posted on 2001-09-10
7
183 Views
Last Modified: 2010-04-06
is there any way to connect to a www server and se if a
file exist on that server?
0
Comment
Question by:hulken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 1

Expert Comment

by:Baksa
ID: 6470719
Yes, with IIS dll. Put following code in WebAction OnAction event :

FileExists(Request.PathTranslated+'\file.fle')

This will test if file exists in root server directory.

If I understood correctly what you wont.
0
 

Author Comment

by:hulken
ID: 6470748
Where do I get IIS dll?
0
 
LVL 1

Expert Comment

by:Baksa
ID: 6473963
No, no, you must MAKE IIS (internet information server) or ISAPI dll (two names for same thing), to do thath with Delphi choose NEW from FILE menu and then select WebServer application, then delphi will ask you for type of your app, choose ISAPI/NSAPI application.

Hit the www.google.com with this search "ISAPI delphi tutorial" and you will get a really lot of tutorials, help and examples.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:hulken
ID: 6474051
Does this mean that I need to have this dll running on the web server?

That is not what I need if so.
0
 

Author Comment

by:hulken
ID: 6474064
I use a TWebBrowser to Watch some files that are on a
web server.
(say http://server.com/pics/)
so I need to know if the picture a.gif exsist befor I makes it possible to open it in TWebBrowser.
0
 
LVL 1

Accepted Solution

by:
Baksa earned 50 total points
ID: 6474373
You can use TNMHttp component, on FastNet tab, it has GET method which you can use to retrieve file and OnSuccess or OnFaulire events. I didn't work much with FastNet components so maybe is in there some better component for your purpose.


0
 

Author Comment

by:hulken
ID: 6514574
Thnks.. I was not able to use the OnSucses thing because They have configured the server to use a own page for page not found.
But in my case when I always want to check if a gif image exist I can use TNMhttp and check the header for Content type image/gif
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Correct Component for Shopping Cart. 2 136
Downloading email attachments 2 96
TEMBEDDEDWB how can i change its user agent ? 8 106
DBCtrlGrid, Delphi, Scroll 7 35
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question