Error getting tags :
error 404Error getting tags :
error 404 URL | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
URL
Basics
Expander triangle
Type
Keyword
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Network
Summary
Designates a container consisting of an Internet resource or local file in the form of a URL.
Examples

get URL "http://www.xworlds.com/index.html"
put URL "binfile:/Mac HD/Files/example.gif" into image "Example Logo"
post field "Results" to URL "http://www.example.org/current.txt"
go stack URL "http://www.example.com/stack.rev"
put field 3 into URL "file:test.txt"

Additional Comments
Expander triangle

Use the URL keyword to access the contents of a local file or a file accessible on the Web.

Comments:

A URL is a method of designating a file or other resource. You can use a URL like any other container. You can get the contents of a URL or use its contents in any expression. Revolution supports the following URL schemes:

http: a page from a web server

ftp: a directory or file on an FTP server

file: a text file on the local disk (not on a server)

binfile: a binary file

resfile: on Mac OS and OS X systems, the resource fork of a file

All actions that refer to a URL container are blocking: that is, the handler pauses until Revolution is finished accessing the URL. Since fetching a web page may take some time due to network lag, accessing URLs may take long enough to be noticeable to the user. To avoid this delay, use the load command (which is non-blocking) to cache web pages before you need them.

For technical information about URLs and URL schemes, see RFC 1630 at <http://www.ietf.org/rfc/rfc1630.txt>.

Important! The http and ftpkeywords are part of the Internet library. To ensure that these URL types work in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the Standalone Application Settings window, make sure "Internet Library" is selected in the list of script libraries.

User Comments
Expander triangle
User thumbnail
George C Brackett
StarStarStarStarStar
Dec 1, 2009
put someData into URL "file:data.txt" creates the file "data.txt" (in the defaultFolder) if the file doesn't exist. It's not necessary to use "open file" to create the file first.