Files
alfresco-community-repo/config/alfresco/messages/webscripts-test-help.txt
David Caruana 7b09497a8f Web Scripts:
- allow tunelling of arbitrary http methods via POST (for clients who have restricted HTTP vocabulary support)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5849 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 12:02:25 +00:00

76 lines
1.6 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/category?c=Web20
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
##
## end
##