Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tnm::http(n) [suse man page]

http(n) 							 Tnm Tcl Extension							   http(n)

__________________________________________________________________________________________________________________________________________________

NAME
http - Send and process HTTP requests. _________________________________________________________________ DESCRIPTION
The Hypertext Transfer Protocol (HTTP) (RFC 1945) is a client/server protocol used to retrieve documents in the World Wide Web. Documents are addressed using Uniform Resource Locators (URL) (RFC 1738). The http command allows to implement HTTP clients and a simple HTTP server. HTTP COMMAND
The following list of http commands is useful for HTTP clients: http proxy [url] The http proxy command allows to define a proxy HTTP server which will be used in subsequent client commands. Using this command without an url argument will return the URL to the currently used proxy or an empty string. Providing a url argument sets the proxy server. Setting the proxy to an empty string turns the proxy feature off. http head url The http head command retrieves the HTTP header for the document located at url. The header is returned as a list of keys and values which can be converted into a Tcl array using the array set command. http get url fileName The http get command retrieves the document located at url. The body of the document is written to the file named fileName. The com- mand returns the HTTP header as described for the http head command above. http post url docFileName fileName The http post command posts the document in docFileName to the location url. The body of the returned document is written to the file named fileName. The command returns the HTTP header as described for the http head command above. http put url docFileName The http put command puts the document in docFileName to the location url. The command returns the HTTP header as described for the http head command above. http delete url The http delete command deletes the document at the location defined by url. The command returns HTTP status information. The following set of http commands is useful for a simple HTTP server: http server [port] The http server command starts a simple HTTP server listening on port port. If called without a port argument, the currently used port number or an empty string is returned. An empty string indicates that no server is currently active. http mime type extension The http mime command is used to add mime type definitions to the internal table which maps file name extension to mime types. If called without an argument, the list of all mime type mappings is returned. A new mapping is created by supplying a mime type and the file name extension. http bind pattern method [script] The http bind command binds a Tcl script to the invocation of a HTTP method where the URL matches pattern. Whenever a HTTP request of type method is received that matches the pattern, script is evaluated. The return value of the script must be a name of a file which will be send back to the client. Errors during the evaluation of the script will result in an error response. The following % sequences are substituted before a script bound to a URL is evaluated: %A The network address of the client. %P The URL path requested by the client. %S The search path contained in the URL path. SEE ALSO
scotty(1), Tnm(n), Tcl(n) AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl> Tnm http(n)

Check Out this Related Man Page

CMIS-CLIENT(1)							 cmis-client 0.2.0						    CMIS-CLIENT(1)

NAME
______cmis-client ____ - command line CMIS client tool. SYNOPSIS
cmis-client help cmis-client [-v] --url url://to/binding list-repos cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id show-root cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id get-content id cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id --input-file path/to/file --input-type mime/type [--input-name name.ext] set-content id cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id [--object-type some:cmistype] [--object-property prop-id=prop-value...] create-folder parent-id name cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id --input-file path/to/file --input-type mime/type [--input-name name.ext] [--object-type some:cmistype] [--object-property prop-id=prop-value...] create-document parent-id name cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id [--object-property prop-id=prop-value...] update-object object-id cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id [type-by-id] | [show-by-id] | [show-by-path] | [delete] arg... cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id [checkout] | [cancel-checkout] | [get-versions] arg cmis-client [-v] [-u login] [-p secret] --url url://to/binding -r repo-id [--input-file path/to/file] [--input-type mime/type] [--input-name name.ext] [--object-property prop-id=prop-value...] [--major] [--message] checkin pwc id DESCRIPTION
The cmis-client tool sends queries over the net to a CMIS-enabled server to access or modify its content. It is originally demonstrating what libcmis is capable of. OPTIONS
GLOBAL OPTIONS -v, --verbose Shows a lot of information to monitor what is happening behind the scene. This helps a lot to debug libcmis. --help Show the help and exit. This is equivalent to use the help command. --url url://to/binding url://to/binding needs to point to the service document of either AtomPub or WebService binding. -r,--repository repo-id Operate on the repo-id CMIS repository. If there is only one repository on the server, this parameter is not needed and that repository will be automatically selected. Use this parameter if there are several repositories on the server. -u,--username login Connect as login to the CMIS server. If not provided connect anonymously. -p,--password secret Use secret to authenticate on the CMIS server. --proxy url Use url as the HTTP proxy. Setting this value will override the system proxy settings. --proxy-username login Use login to authenticate on the HTTP proxy. --proxy-password secret Use secret to authenticate on the HTTP proxy. --noproxy list Proxy settings won't apply to hostnames and domain names listed in list. This value is a coma separated list. MODIFICATION OPERATIONS OPTIONS --input-file path/to/file Upload path/to/file as the new content stream of the object. --input-type mime/type Set the mime type of the new content stream of the object to mime/type. --input-name name.ext Set the remote content stream filename of the new content stream of the object to name.ext. --object-type some:cmistype Set the object type of the CMIS object to be created to some:cmistype. This is the equivalent of --object-property cmis:objectTypeId=some:cmistype. --object-property prop-id=prop-value Set a property to be updated or added to the CMIS object. prop-id is the property definition id and prop-value is the value to set on it. --major Create a major version when performing a checkin. -m, --message message Set the checking message. COMMANDS help Show the help and exit. list-repos List the repositories available on the server. show-root Displays the root node infos and children. get-content id Download the content of the CMIS object corresponding to id in the current directory. set-content id Upload a file as the content stream of the CMIS object corresponding to id. create-folder parent-id name Create a sub folder in folder parent-id named name. The default type of the folder to create is cmis:folder, but this can be changed using --object-type option. create-document parent-id name Create a document in folder parent-id named name. The default type of the document to create is cmis:document, but this can be changed using --object-type option. Note that the --input-file and --input-type may be mandatory, depending on the type of the document to create and its constraints. update-object object-id Replace the writeable properties given with --object-property option on the object matching id object-id. type-by-id arg... Displays the infos and children (if any) of all the CMIS types corresponding to the listed ids. show-by-id arg... Displays the infos and children (if any) of all the CMIS objects corresponding to the listed ids. show-by-path arg... Displays the infos and children (if any) of all the CMIS objects corresponding to the listed paths. delete arg... Deletes the CMIS objects corresponding to the listed ids. If the node is a folder, its content will be removed as well. checkout arg Checkout the document corresponding to the provided id and display the infos of the created private working copy. cancel-checkout arg Cancel the Private Working Copy corresponding to the node id. get-versions arg Display the versions (if any) of all the CMIS object corresponding to the provided id. checkin arg Check in the private working copy corresponding to the provided id and display the infos of the resulting document. Use the --major and --message options to define the version to create and the commit to associate to it. Note that repositories without the ability to update the private working copies will need the --input-file, --input-type and --object-property options. USAGE
Displays the root node of repository A1: cmis-client -r A1 --url http://localhost/atom show-root Displays the nodes with id 133 and 116 of repository A1: cmis-client -r A1 --url http://localhost/atom show-by id 133 116 AUTHOR
Cedric Bosdonnat cbosdo cmis-client 0.2.0 2012-02-21 CMIS-CLIENT(1)
Man Page