Return to LAS FAQ

Direct links to products


How can I get a URL directly to an LAS product, bypassing the LAS user interface?


Here is a request for SMMR snow depth over North America from our NOPP server.

And another for a Hofmoeller plot along the equator showing the 1983 El Niño.


You could always grab an image URL from the page source for the output window. However, this image is not guaranteed to exist for any particular length of time. If you are using any cache management, this image will be removed if it hasn't been requested for a while. The URLs used above are actual product requests to the data server. If the image has been previously generated then it will be immediately returned from the cache. If it no longer exists, a new product will be created and returned.


Up through LAS v6.1, there is no way to request a product-request-URL from LAS. However, if you are an LAS site maintainer you can grab URLs from las/server/log/access file. The 'RQST:' lines in this file are the GET encoded versions of the actual XML requests. You'll need to prepend the host address to get the full URL.

Note: In LAS v6.2 (due out in Fall 2003) a direct product-request-URL will be available on the output page.

Just make a request of your server and then look at the last nine lines of the log/access file. You should see something like this (if you ignore the line breaks I've inserted):

> tail -9 ../log/access | grep RQST
RQST: GET /nvods-bin/

You can test your URL by prepending the host address and pasting everything from '/nvods-bin/' to the end into your browser.

Note: Using Macromedia Dreamweaver 4 I had some difficulties with Dreamweaver overzealously encoding '+' as '%2B' while inappropriately decoding '%3C', '%3D', '%3E' and '%3F' as '<', '=', '>' and '?' inside the URL. I had to use find/replace in the source code to fix this.

Jonathan Callahan:
Last modified: June 11, 2003