Command: httpset

Syntax

httpset <domain>

Description

Define information to be added to HTTP packets sent across the internet.

Such information includes:

Name/value pairs to be appended to URL's.

Name/value pairs to be included in HTTP headers.

Cookie values to be included in HTTP headers.

Proxy authentication values to be included in HTTP headers.

WWW authentication values to be included in HTTP headers.

One of the above will be added depending on which command switches are specified.

HTTP packets are sent by the download/httpget and httppost commands, and during communication with network service channels and databases.

Parameters

Switches

Notes

The current HTTP additions may be inspected by the sysdump http command.

In a browser deployment situation, cookies are added to HTTP settings automatically on system start.

Examples

Add 2 name/value pairs to all URL's hitting magma.com.

httpset 'magma.com',-url,-name=<'core','sense'>,-val=<'17','xtra'>

Remove one of them, so that it no longer gets added.

httpset 'magma.com',-del,-url,-name='core',-val='17'

Add a cookie to all URL's hitting hedgehog.com/examples.

httpset 'hedgehog.com/examples',-cook='JSESSIONID=851af6dc01af'

Add authentication (fictional) for a proxy realm.

httpset '/',-pro='MARS_PROXY',-val='kirk:uhuru'

Add authentication (in encoded form) for a WWW realm.

string s = fxencode('scott:tiger')
httpset 'xmarc.net',-www='admin',-val=s

See Also

Commands:

channel, database, download, httpget, httppost