|
|
|
|
|
| | |
|
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Interpreting a text/plain response? |
From: |
Mike Taylor |
Date: |
12/2/1999 6:52:53 AM |
IP: |
62.188.131.241 |
I am developing an ASP-based shopping basket system in conjunction with a
multi-currency WorldPay account. WorldPay provide access to selected
exchange rates updated every 24 hours. They say I should "make a call" to
the file https://**domain**/wcc/info?op=rates&instId=XXXX which, when you
enter the full URL in a browser, produces the following output. Apparently,
this file is returned as content-type text/plain, and is a standard Java
properties file format.
#Exchange rates for installation 4598
#Thu Jul 08 17:21:45 GMT 1999
DEM_CHF=0.8293301380534893
DEM_NLG=1.1267390120015601
DEM_DEM=1.0
DEM_CAD=0.7811273640705966
DEM_BEF=20.625463396943164
rateDateMillis=931454505167
DEM_FRF=3.353854814359919
DEM_GBP=0.3364112383046616
I want to be able to access the contents of this file in an ASP script, so
that I can strip the exchange rates out and convert sterling prices from my
database into the appropriate currency on the shopping pages. However, I
cant find a way to read this file. I have tried using TextStream, but the
file needs to on the local server.
How can I read this file line by line?
Mike Taylor
Website Designer
Plusfile Options
www.plusfile.co.uk/options |
Follow Up - Re: Interpreting a text/plain response? - Chris Williams 12/2/1999 7:20:02 AM
|
|

|
|
|
|
|
|
|
|
|
|