- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Checking a URL from OpenVMS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 06:24 AM
05-29-2006 06:24 AM
ie: using a .com file, check that a URL (such as http://login.yahoo.com/config/mail?.intl=ca) is available.
thnx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 06:52 AM
05-29-2006 06:52 AM
Solutionwelcome to the OpenVMS ITRC forum.
cURL has been ported to OpenVMS:
http://curl.haxx.se/download.html
You can use it to download WEB pages from an OpenVMS system from the DCL prompt, e.g.
$ curl http://www.openvms.org
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 07:10 AM
05-29-2006 07:10 AM
Re: Checking a URL from OpenVMS
%DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters
\HTTP\
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 08:10 AM
05-29-2006 08:10 AM
Re: Checking a URL from OpenVMS
http://antinode.org/dec/sw/wget.html
but for the %DCL-W-MAXPARM problem, you
should read the FAQ:
http://h71000.www7.hp.com/faq/openvms_faq.html?jumpid=/go/openvms/faq
http://h71000.www7.hp.com/faq/vmsfaq_stmlf.txt
Look for:
8.2 How do I run a program with arguments?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 08:16 AM
05-29-2006 08:16 AM
Re: Checking a URL from OpenVMS
Exactly how did you activate it?
With the commance Volker showed?
How did you define 'curl' ?
Did you try using:
$MCR your-curl-location:curl ....
Or did you try having the curl location be part of your DCL$PATH search list logical?
Did you google for help?
Google: +vms +site:curl.haxx.se +"too many parameters"
This points to a seemingly relevant article:
http://curl.haxx.se/mail/archive-2002-10/0119.html
Btw.. you may also try 'lynx' as a simple, command line based, http reader.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 08:18 AM
05-29-2006 08:18 AM
Re: Checking a URL from OpenVMS
thnx, it works like a charm!
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 07:30 AM
05-31-2006 07:30 AM
Re: Checking a URL from OpenVMS
http://ila.educ.gov.bc.ca/dev60cgi/rwcgi60?ila&report=DoNotDelete.rep&destype=cache&desformat=HTML
I'm attempting to run an oracle report and get the output back. In a regular windows browser, the output is displayed, but using CURL, I get an:
Error: The requested URL was not found, or cannot be served at this time
any ideas?
thnx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 07:45 AM
05-31-2006 07:45 AM
Re: Checking a URL from OpenVMS
Showing the actual command used is often
more helpful than a vague description of the
actual command used.
Did you quote the URL, as it contains DCL
special characters ("&")?
If cURL has any debug options, you might try
to persuade it to show you the URL it's
actually using (after "&" interpretation).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 07:47 AM
05-31-2006 07:47 AM
Re: Checking a URL from OpenVMS
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 07:50 AM
05-31-2006 07:50 AM
Re: Checking a URL from OpenVMS
If the URL is on a DCL command line, did you
quote it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 03:15 PM
05-31-2006 03:15 PM
Re: Checking a URL from OpenVMS
a timeout. I have also tried the above URL with cURL,
with it quoted and unquoted and get a timeout in both cases...
$ curl -v "http://ila.educ.gov.bc.ca/dev60cgi/rwcgi60?ila&report=DoNotDelete.rep&destype=cache&desformat=HTML"
$ curl -v http://ila.educ.gov.bc.ca/dev60cgi/rwcgi60?ila&report=DoNotDelete.rep&destype=cache&desformat=HTML
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 03:18 PM
05-31-2006 03:18 PM
Re: Checking a URL from OpenVMS
* About to connect() to ila.educ.gov.bc.ca port 80
* Trying 142.36.182.246... connection timed out
* couldn't connect to host
* Closing connection #0
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 04:24 PM
05-31-2006 04:24 PM
Re: Checking a URL from OpenVMS
Well, of course. You didn't think that this
fellow's Oracle data base would be generally
accessible, did you? (He keeps his cURL
command a secret, so this should not be
amazing.)
I'm still betting on argument quotation (but
for case preservation, as the ampersands
appear to be harmless here, contrary to my
initial fear).
As usual, a straight answer to a simple
question might reduce the guesswork.
Note that Wget _will_ preserve command-line
case with SET PROCESS /PARSE_STYLE = EXTENDED
(assuming a sufficiently modern C RTL).
Judging from the results I got from a:
curl 7.15.1 (ALPHA-HP-VMS) libcurl/7.15.1 OpenSSL/0.9.6g
trying 'curl -V' and 'curl "-V"', I'd guess
that argument quotation is important with
cURL. Or (again trusting the C RTL), first
DEFINE DECC$ARGV_PARSE_STYLE ENABLE.
For details:
HELP CRTL Feature_Logical_Names
For details on how Wget does it
automatically, see:
HELP CRTL decc$feature*
and/or, look at its VMS-specific source code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 08:19 PM
05-31-2006 08:19 PM
Re: Checking a URL from OpenVMS
To avoid downloading the URL, just get the header with "pipe curl --head url >head.tmp".
Then one can use $STATUS to check if the server is reachable at all. If success, then one could parse the output for the HTTP status response like
("HTTP/1.1 200 Sending Processed HTMLX"). Code 200 is the HTTP success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 08:53 PM
05-31-2006 08:53 PM
Re: Checking a URL from OpenVMS
at ftp://ftp.multicians.org/
there is (amongst others) url.pl, and urltest.pl, it works like this
perl URLTEST.PL http://www.multicians.org
http://www.multicians.org ok HTTP/1.1 200 OK
urltest could be modified to return VMS $status for use inside DCL procedures.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 11:01 PM
05-31-2006 11:01 PM
Re: Checking a URL from OpenVMS
just a few notes...
>>>
To avoid downloading the URL, just get the header
<<<
BTW: Lynx also has a -head option.
>>>
And, for Perl lovers :-)
<<<
All perl programmers doing serious web programming install the libwwwperl (or LWP) which comes with some ready-made example programs including GET, HEAD, and POST.
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 12:19 AM
06-01-2006 12:19 AM
Re: Checking a URL from OpenVMS
Just saw urltest immediately when looking for something containing URL :-)
And before I (with my minimal experience) write something using the LWP package I ready use urltest like this:
$ pipe perl perl_root:[utils]urltest.pl "url to test" |-
(read sys$pipe line ; line=f$element(0," ",line) ; -
define/job http_code &line)
$ if f$trnlnm("HTTP_CODE").eqs."ok" ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 12:53 AM
06-01-2006 12:53 AM
Re: Checking a URL from OpenVMS
not very convenient.
So without Perl (URL or LWP), one has to do it using lynx or curl by redirecting output to a temporary file, read the first line, check the second word of the line for the httpd response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 01:00 AM
06-01-2006 01:00 AM
Re: Checking a URL from OpenVMS
And before I (with my minimal experience) write something using the LWP package...
<<<
That's why I refered to the example programs - you don't need to do anything with them:
$ perl perl_root:[utils]lwp-request. -m HEAD http://www.openvms.de/
200 OK
Connection: close
Date: Thu, 01 Jun 2006 13:00:04 GMT
Accept-Ranges: bytes
ETag: "c4769c-f84-3fe30791"
Server: Apache/1.3.26 (OpenVMS) mod_jk/1.2.3-dev PHP/4.3.2 mod_perl/1.25 mod_ssl/2.8.10 OpenSSL/0.9.6g
Content-Length: 3972
Content-Type: text/html
Last-Modified: Fri, 19 Dec 2003 14:13:37 GMT
Client-Date: Thu, 01 Jun 2006 13:00:04 GMT
Client-Peer: 195.137.216.132:80
Client-Response-Num: 1
$
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 01:26 AM
06-01-2006 01:26 AM
Re: Checking a URL from OpenVMS
$ pipe perl perl_root:[utils]lwp-request. -m HEAD "testURL" | -
(read sys$pipe line ; line = f$element(0," ",line) ; define/job http_code &line)
$ if f$trnlnm("HTTP_CODE").eq.200 !success ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 03:38 AM
06-01-2006 03:38 AM
Re: Checking a URL from OpenVMS
The command I use is:
$CURL "url..."
That's it. Yes, the db is not available to the public. Thnx for the help all, I'll try some of the suggestions out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 04:45 AM
06-01-2006 04:45 AM
Re: Checking a URL from OpenVMS
if you have received useful replies, please have a look at
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
and consider to assign points to the answers you've received.
Thanks,
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 05:04 AM
06-01-2006 05:04 AM
Re: Checking a URL from OpenVMS
thnx all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 09:04 AM
06-02-2006 09:04 AM
Re: Checking a URL from OpenVMS
work, or that you didn't?
I gather that cURL has a "-v" option which
might tell you more about what it's doing.
(_You_ should have such an option.)
I'd be interested to know if Wget did any
better (or differently).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2006 05:32 AM
06-04-2006 05:32 AM
Re: Checking a URL from OpenVMS
thnx