Solved

File Exist Over WWW

Posted on 2001-09-10
7
176 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
Comment Utility
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
Comment Utility
Where do I get IIS dll?
0
 
LVL 1

Expert Comment

by:Baksa
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:hulken
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

18 Experts available now in Live!

Get 1:1 Help Now