mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- samples - fix "execute" javascript error - fix hidden exception when status template had errors - addition of 'roothome' script & template root object git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
101 lines
1.9 KiB
Plaintext
101 lines
1.9 KiB
Plaintext
##
|
|
## Meta commands
|
|
##
|
|
|
|
ok> help
|
|
|
|
List this help.
|
|
|
|
ok> r
|
|
|
|
Repeat last command.
|
|
|
|
ok> user [<userName>]
|
|
|
|
Switch to specified <userName>. If <userName> is omitted, the currently
|
|
selected user is shown.
|
|
|
|
A ticket may be specified instead of username.
|
|
|
|
ok> quit | exit
|
|
|
|
Quit this Web Script server.
|
|
|
|
##
|
|
## HTTP Requests
|
|
##
|
|
|
|
ok> get <path>
|
|
|
|
Issue a HTTP GET request to the Web Script located at <path>. The response
|
|
is dumped to the console.
|
|
|
|
<path> URL relative to /alfresco/service
|
|
|
|
e.g. get /blog/search?q=tutorial
|
|
|
|
ok> put <path>
|
|
|
|
Issue a HTTP PUT request to the Web Script located at <path>. The response
|
|
is dumped to the console.
|
|
|
|
<path> URL relative to /alfresco/service
|
|
|
|
ok> post <path>
|
|
|
|
Issue a HTTP POST request to the Web Script located at <path>. The response
|
|
is dumped to the console.
|
|
|
|
<path> URL relative to /alfresco/service
|
|
|
|
ok> delete <path>
|
|
|
|
Issue a HTTP DELETE request to the Web Script located at <path>. The response
|
|
is dumped to the console.
|
|
|
|
<path> URL relative to /alfresco/service
|
|
|
|
ok> tunnel <encoding> <method> <path>
|
|
|
|
Tunnel a request via POST.
|
|
|
|
The actual <method> is encoded as either the URL parameter named alf:method or
|
|
the request header named X-HTTP-Method-Override as specified via the <encoding>
|
|
parameter:
|
|
|
|
param - encode method as URL parameter
|
|
header - encode method in Request Header
|
|
|
|
e.g. to tunnel 'get /index' via post (where method is encoded in header) issue
|
|
|
|
tunnel header get /index
|
|
|
|
##
|
|
## Request Header Commands
|
|
##
|
|
|
|
ok> header
|
|
|
|
Show all defined headers.
|
|
|
|
ok> var <headerName>=<headerValue>
|
|
|
|
Define or update a header value.
|
|
|
|
<headerName> header name
|
|
<headerValue> header value
|
|
|
|
e.g.
|
|
|
|
header alf-force-success=true
|
|
|
|
ok> header <headerName>=
|
|
|
|
Delete an existing header value.
|
|
|
|
<headerName> header name
|
|
|
|
##
|
|
## end
|
|
##
|