This command allows you
to configure the HTTP parameters.
Privilege:
Security Administrator,
Administrator
Syntax
http { ad-filter
display { no-text | text-only text_only_string | text-with-click text_with_click_string } | compression | optimize-compressed-page | params { ad-filter
display bgcolor bg_color_code | compression
level compression_level | url-rewrite prefix url_rewrite_prefix } | prevent-server-compression | url-rewrite }
default http { ad-filter
display | compression | optimize-compressed-page | params { ad-filter
display bgcolor | compression level | url-rewrite
prefix } | prevent-server-compression | url-rewrite }
no http { compression | optimize-compressed-page | params ad-filter
display bgcolor | prevent-server-compression | url-rewrite }
default
Configures this command
with the default setting for the specified parameter.
Default:
- ad-filter display:
none
- compression:
Disabled
- optimize-compressed-page:
Disabled
- params:
- ad-filter display bgcolor: FFFFFF
- compression level:
6
- url-rewrite prefix: urlrewrite
- prevent-server-compression:
Disabled
- url-rewrite: Disabled
no
Deletes TPO configuration
for the specified parameter.
ad-filter display { no-text | text-only text_only_string | text-with-click text_with_click_string }
Enables HTTP Advertisement
Filter, and configures the specified options:
- no-text:
Blocks advertisements. Mobile client users see the “cannot
display image” icon (usually an X mark) instead of a blocked advertisement.
Users cannot view the blocked advertisements even if they want to.
- text-only text_only_string:
Blocks advertisements. Mobile client users will see a placeholder
frame instead of each blocked advertisement. Each placeholder frame
contains the text specified here along with the advertisement’s
URL. Users cannot view the blocked advertisements even if they want
to.text_only_string must
be an alphanumeric string of 1 through 255 characters.
- text-with-click text_with_click_string:
Blocks advertisements. Mobile client users will see a placeholder
frame instead of each blocked advertisement. Each placeholder frame
contains the text specified here along with the advertisement’s
URL. To view the blocked advertisements, users must click the placeholder
frames.text_with_click_string must
be an alphanumeric string of 1 through 255 characters.
compression
Enables HTTP compression
for Web pages.
Default: Disabled
optimize-compressed-page
Enables uncompressing
of compressed Web pages to apply other HTTP optimization techniques.
If the Web server responds
to the mobile client with a compressed Web page, in order to apply
other HTTP optimization techniques that maybe enabled, TPO can uncompress
the Web page, apply the other HTTP optimizations, recompress the
Web page, and then send it to the mobile client.
Default: Disabled
params { ad-filter
display bgcolor bg_color_code | compression
level compression_level | url-rewrite
prefix url_rewrite_prefix }
Configures HTTP compression
optimization parameters:
- ad-filter display bgcolor bg_color_code:
For the HTTP Advertisement Filter feature, specifies color code
for the advertisement placeholder frames’ background.bg_color_code must
be a string of 1 through 6 hexadecimal characters.
- compression level compression_level:
Enables HTTP compression, and specifies the compression level.compression_level specifies
the HTTP compression level, and must be an integer from 1 through
9. The higher the compression level, the better the compression
but with a higher CPU and memory utilization.Default: 6
- url-rewrite prefix url_rewrite_prefix:
Enables HTTP URL rewrite, and specifies the HTTP URL rewrite prefix.url_rewrite_prefix specifies
the HTTP URL rewrite prefix, and must be an alphanumeric string
of 8 through 32 characters.When embedded URLs
are returned, they are replaced. For example, when “http://www.foo.com/xxx” is
in the response, the URL is replaced with “http://ip-address/<url_rewrite_prefix>/www.foo.com/xxx”.
In this example, the DNS client resolves “www.foo.com” and
puts that resolution as “ip-address”. When the
subscriber later does a GET, that request is modified as:URL: STRING/www.foo.com/xxx — will
be changed to be just xxxHost: ip-address — will
be changed to be “www.foo.com”Default: urlrewrite
prevent-server-compression
Specifies TPO (to manipulate
the HTTP request) to prevent server compression at the Web server.
TPO receives uncompressed
data from the Web server, on which it can apply other HTTP optimization
techniques, and then compresses and sends the data to the mobile
client.
Default: Disabled
url-rewrite
Enables the URL Rewrite
feature.
The URLs that are embedded
in response pages are rewritten. This eliminates the need for the
subscriber to perform DNS to resolve those URLs. See the url-rewrite option.
Default: Disabled
Usage:
Use this command to
configure TPO’s HTTP parameters.
Example:
The following command
configures HTTP compression optimization parameter to level
3:
http params compression
level 3