|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need to know if I can send a url to a function as a parameter and the function will return a value indicating if that page will return a 404 error code or any http code
|
|
#2
|
||||
|
||||
|
I inquired about this years ago to a developer I worked with and the answer is "yes." Is it easy? no. I believe that he suggested it can be done in Java. How you do it, I don't know the details but the concept is as you would imagine. You make a request, if the page loads then you go to that page. What is your exact goal? Maybe there's another way to accomplish what you are trying to ultimately achieve.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#3
|
|||
|
|||
|
Really what I need to do is :
Actually there is a help link in a web page, if a client access this link can occur two things: 1. The requested page is found, because the help archive was installed by the client in a specific path of the hard disk. 2. The page not found, because the archive hasn't been installed by the client then he must donwload the help archive to view. How can I check if that flie exists in the client's hard disk ? |
|
#4
|
||||
|
||||
|
One thing I might try two things:
2. Check to see if the archive folder exists: Code:
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FolderExists("c:\archive")=true then
response.write("Folder c:\archive exists!")
else
response.write("Folder c:\archive does not exist!")
end if
set fs=nothing
%>
3. Make a file in the archive folder writable and do a test to see if you can write to that file. If you can write to the file then the file exists. If not, handle the error and notify the user that they have to install in folder. Both ways you should be able to detect if the archive folder/files exist |
|
#5
|
|||
|
|||
|
your answer is valid but only to find a file in the server, not in the client, what I need is to find a file in the client. thanks
|
|
#6
|
||||
|
||||
|
Quote:
You can't do this in ASP, you would need to create an ActiveX dll, that the client could download. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Get Error 404(Page not found) by client |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|