PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Networking

InternetDelete

Syntax

InternetDelete URL=<url> Headers=<hdrs> Result=<var>

Description

Deletes the file specified by the URL.

Parameters

URL=<url>

The URL of the file to be deleted.

Headers=<var>

Optional. A string containing HTTP header fields to be included in the request. Header fields should be formatted just as they are to be placed in the HTTP header, including newlines.

Result=<var>

The variable into which the HTTP response headers are placed.

Remarks

Example

InternetDelete
URL="http://www.p1.com/index.html"
Result=responseHeaders
MessageBox Text=responseHeaders

The above script fragment displays following in a message box. (It is generally not allowed to delete files from a webserver.)

  HTTP/1.1 403 Forbidden
Date: Tue, 13 Jun 2006 05:04:04 GMT
Server: Apache/1.3.6 (Unix) FrontPage/4.0.4.3
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html


Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.