blob: 94ddb2a3ef40b00dc52145fef713aa2532ff6b96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#
# Rudimentary URL handling: files
# Set the test description string.
votest.descr = "Rudimentary URL handling: files"
# Convert the data$logical to a local path.
s1 = data_url // "/usno-b.xml"
s2 = "file://" // data_path // "/usno-b.xml"
s3 = "file:///localhost" // data_path // "/usno-b.xml"
fcache init
# Execute the test commands.
print ("\nLogical Path: data$usno-b.xml") # logical path
type ("data$usno-b.xml")
print ("\nHTTP URI: " // s1) # remote http URI
type (s1)
print ("\nFile URI: " // s2) # file URI
type (s2)
print ("\nFile URI: " // s3) # file URI
type (s3)
print ("\nHTTP Redirection") # HTTP Redirection
type ("http://iraf.noao.edu/votest/redir_file.php")
print ("\nHTTP CGI query") # HTTP CGI query
type http://iraf.noao.edu/scripts/irafhelp?dir # command mode
type ("http://iraf.noao.edu/scripts/irafhelp?dir") # program mode
s1 = "http://iraf.noao.edu/scripts/irafhelp?dir" # script vars
type (s1)
# Exclude from auto-test scripts since output will change over time.
#
#print ("\nHTTP Server-side URL") # Server-side URL
#type ("http://casa.nrao.edu/index.shtml")
|