Hi Folks,
I have run into a bit of an issue with checking for files.
Some files reside on Server X and some on Server Y.
The page with all the links is on Server X. If the file exists we display a
link, if it does not then we display "sorry not yet available".
For the files on server X it is no problem I use an FSO and don't have a
problem. For files on server Y I am having a big problem.
How do I checck to see if these files exist? I was using the code below but
that actually gets the file and some of the files are 50 MB or more.
Dim objHTTP
Dim sHTML
Dim strURL
strURL = BaseProt & RemoteServer & "...rest of path ...=" & URLplacet7
Dim strchkURL
strchkURL = BaseProt & RemoteServer & "...rest of path ..." &
Session("xortho ") & ".tif"
Set objHTTP = Server.CreateOb ject ("Microsoft.XML HTTP")
objHTTP.open "GET", strchkURL, False
objHTTP.send
sHTML=objHTTP.s tatusText
If err Or sHTML<>"OK" Then
Response.Write "Not Yet Available<br />"
Else
Response.Write( "<a href='" & BaseProt & RemoteServer & "...rest of path
....?FindFile=" & URLplacet7 & "'>" & Session("xortho ") & ".tif</a><br />")
End If
Set objHTTP=Nothing
Does anyone have any suggestions for me?
Thank you,
--
Phil Lamey, EIT
CGI Consultant 3 1747
Use FSO to check for files on the remote server also?
Did you try this? Did you get an error?
Jeff
"Phil Lamey" <Ph*******@disc ussions.microso ft.com> wrote in message
news:5A******** *************** ***********@mic rosoft.com... Hi Folks,
I have run into a bit of an issue with checking for files. Some files reside on Server X and some on Server Y.
The page with all the links is on Server X. If the file exists we display
a link, if it does not then we display "sorry not yet available".
For the files on server X it is no problem I use an FSO and don't have a problem. For files on server Y I am having a big problem.
How do I checck to see if these files exist? I was using the code below
but that actually gets the file and some of the files are 50 MB or more.
Dim objHTTP Dim sHTML Dim strURL strURL = BaseProt & RemoteServer & "...rest of path ...=" & URLplacet7 Dim strchkURL strchkURL = BaseProt & RemoteServer & "...rest of path ..." & Session("xortho ") & ".tif" Set objHTTP = Server.CreateOb ject ("Microsoft.XML HTTP") objHTTP.open "GET", strchkURL, False objHTTP.send sHTML=objHTTP.s tatusText If err Or sHTML<>"OK" Then Response.Write "Not Yet Available<br />" Else Response.Write( "<a href='" & BaseProt & RemoteServer & "...rest of path ...?FindFile=" & URLplacet7 & "'>" & Session("xortho ") & ".tif</a><br />") End If Set objHTTP=Nothing
Does anyone have any suggestions for me?
Thank you,
-- Phil Lamey, EIT CGI Consultant
No ...
I said that FSO is used to check if the file exists on the same server as
the file where the links are created.
My problem is checking to see if a file exists on a remote server without
having to download the whole file using Microsoft.XMLHT TP.
Any ideas?
"Jeff Dillon" wrote: Use FSO to check for files on the remote server also?
Did you try this? Did you get an error?
Jeff "Phil Lamey" <Ph*******@disc ussions.microso ft.com> wrote in message news:5A******** *************** ***********@mic rosoft.com... Hi Folks,
I have run into a bit of an issue with checking for files. Some files reside on Server X and some on Server Y.
The page with all the links is on Server X. If the file exists we display a link, if it does not then we display "sorry not yet available".
For the files on server X it is no problem I use an FSO and don't have a problem. For files on server Y I am having a big problem.
How do I checck to see if these files exist? I was using the code below but that actually gets the file and some of the files are 50 MB or more.
Dim objHTTP Dim sHTML Dim strURL strURL = BaseProt & RemoteServer & "...rest of path ...=" & URLplacet7 Dim strchkURL strchkURL = BaseProt & RemoteServer & "...rest of path ..." & Session("xortho ") & ".tif" Set objHTTP = Server.CreateOb ject ("Microsoft.XML HTTP") objHTTP.open "GET", strchkURL, False objHTTP.send sHTML=objHTTP.s tatusText If err Or sHTML<>"OK" Then Response.Write "Not Yet Available<br />" Else Response.Write( "<a href='" & BaseProt & RemoteServer & "...rest of path ...?FindFile=" & URLplacet7 & "'>" & Session("xortho ") & ".tif</a><br />") End If Set objHTTP=Nothing
Does anyone have any suggestions for me?
Thank you,
-- Phil Lamey, EIT CGI Consultant
Um..yes, use FSO? Do you have network access to the remote server? You
won't be able to get access to the filesytem otherwise, unless you expose an
object on the remote server, such as a webservice.
Jeff
"Phil Lamey" <Ph*******@disc ussions.microso ft.com> wrote in message
news:C9******** *************** ***********@mic rosoft.com... No ...
I said that FSO is used to check if the file exists on the same server as the file where the links are created.
My problem is checking to see if a file exists on a remote server without having to download the whole file using Microsoft.XMLHT TP.
Any ideas?
"Jeff Dillon" wrote:
Use FSO to check for files on the remote server also?
Did you try this? Did you get an error?
Jeff "Phil Lamey" <Ph*******@disc ussions.microso ft.com> wrote in message news:5A******** *************** ***********@mic rosoft.com... Hi Folks,
I have run into a bit of an issue with checking for files. Some files reside on Server X and some on Server Y.
The page with all the links is on Server X. If the file exists we
display a link, if it does not then we display "sorry not yet available".
For the files on server X it is no problem I use an FSO and don't have
a problem. For files on server Y I am having a big problem.
How do I checck to see if these files exist? I was using the code
below but that actually gets the file and some of the files are 50 MB or more.
Dim objHTTP Dim sHTML Dim strURL strURL = BaseProt & RemoteServer & "...rest of path ...=" & URLplacet7 Dim strchkURL strchkURL = BaseProt & RemoteServer & "...rest of path ..." & Session("xortho ") & ".tif" Set objHTTP = Server.CreateOb ject ("Microsoft.XML HTTP") objHTTP.open "GET", strchkURL, False objHTTP.send sHTML=objHTTP.s tatusText If err Or sHTML<>"OK" Then Response.Write "Not Yet Available<br />" Else Response.Write( "<a href='" & BaseProt & RemoteServer & "...rest of
path ...?FindFile=" & URLplacet7 & "'>" & Session("xortho ") & ".tif</a><br
/>") End If Set objHTTP=Nothing
Does anyone have any suggestions for me?
Thank you,
-- Phil Lamey, EIT CGI Consultant This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ville Mattila |
last post by:
Hello readers,
I'm trying to install the latest PHP4 version from the scratch. The
configure string is following:
../configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-curl --enable-exif --enable-mbsting=all --with-gd --with-openssl
--with-zlib-dir=/usr --with-zlib
Everything goes well until the cURL should be configured. At that point,
I will encounter an error like this:
|
by: - ions |
last post by:
I have created a JComboBox with its Items as a list of "M" numbers ie.
M1,M2,M3.......throgh too M110 (thes are the messier objects, a
catolouge of deep sky objects) the user selects of of these and views
it aswell as infomation. The program also has a JTextFiels which
allows the user to enter the M number. The problem i have is checking
that what the user has entered is valid, that being an M followed by 1
- 110 Nothing else, i thought of...
|
by: Tongu? Yumruk |
last post by:
I have a little proposal about type checking in python. I'll be glad
if you read and comment on it. Sorry for my bad english (I'm not a
native English speaker)
A Little Stricter Typing in Python - A Proposal
As we all know, one of the best things about python and other
scripting languages is dynamic typing (yes I know it has advantages
and disadvantages but I will not discuss them now). Dynamic typing
allows us to change types of...
|
by: Web Developer |
last post by:
Hi,
I come across the term "type checking" very often in my readings on C++, and
have never heard it in Java. Besides the simplistic answer that it checks
the "type", what more does it mean?
WD
|
by: Qopit |
last post by:
Hi there,
I'm pretty new to Python and am trying to figure out how to get "will
this code compile?"-like code checking. To me this is a pretty basic
language/environment requirement, especially when working with large
projects. It is *much* better to catch errors at "compile-time" rather
than at run-time.
One thing I've "found" is the PyChecker module (conveniently embedded
in SPE), but it doesn't seem to do that great of a job. ...
| |
by: Patient Guy |
last post by:
Does anyone have any coding rules they follow when doing argument checking?
When arguments fail during check, do you return from the call with an
ambiguous return value, or do you throw exceptions?
|
by: lawrence k |
last post by:
I've made it habit to check all returns in my code, and usually, on
most projects, I'll have an error function that reports error messages
to some central location. I recently worked on a project where someone
suggested to me I was spending too much time writing error messages,
and that I was therefore missing the benefit of using a scripting
language. The idea, apparently, is that the PHP interpreter writes all
the error messages that are...
|
by: jacob navia |
last post by:
We hear very often in this discussion group that
bounds checking, or safety tests are too expensive
to be used in C.
Several researchers of UCSD have published an interesting
paper about this problem.
http://www.jilp.org/vol9/v9paper10.pdf
Specifically, they measured the overhead of a bounds
|
by: polas |
last post by:
Afternoon everyone.
I have a quick question about standard C. Generally speaking, in my
experience, whenever one accesses an array there is never any bounds
checking done (either statically during compilation or dynamically
during runtime.) However, I was wondering if whether there is anything
defined in the standard about this.
The reason for this is I have some code conforming to ANSI C99 and
wish to write to both arrays and a block...
|
by: BillE |
last post by:
I have found articles on line about using word interop for spell checking
with visual studio applications.
Most of the articles are several years old, though - VS2003, maybe 2005. I
couldn't find anything for VS2008.
Are there any new improvements in spell checking with VS2008?
Thanks
Bill
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |