Solved

File Exist Over WWW

Posted on 2001-09-10
7
177 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 2 51
Convert GUI app into console app for Win32 Env 5 81
Error E2158 compiling with Delphi XE10 Seattle 2 88
Convert MS Word document to a PDF file 9 64
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now