Configuration Guide for Cisco NCS 1014, IOS XR Releases 26.x.x

PDF

HTTP Client application

Want to summarize with AI?

Log in

This section explains what HTTP client applications are, key attributes, and essential configuration options.


HTTP Client allows files to be transferred from an HTTP server to another device over a network using the HTTP protocol.

You can configure the HTTP Client and its associated parameters by using the http client command.

This table lists the commands used to configure HTTP Client settings:

Table 1. Commands used to configure HTTP Client settings

Features

Description

connection Configure HTTP Client connection by using either retry or timeout options.
response How long HTTP Client waits for a response from the server for a request message before giving up.
secure-verify-host Verify host in peer's certificate. To disable verifying this, you can use the command http client secure-verify-host disable
secure-verify-peer Verify authenticity of the peer's certificate.
source-interface Specifies the source interface for all outgoing HTTP connections. You can enter an IPv4 address, an IPv6 address, or both addresses.
ssl version SSL version (configuration) to be used for HTTPS requests.
tcp-window-scale scale Sets the TCP window-scale factor for high-latency links.
version version

HTTP version to be used in HTTP requests.

  • 1.0—HTTP1.0 will be used for all HTTP requests.

  • 1.1—HTTP1.1 will be used for all HTTP requests.

  • default libcurl—will use HTTP version automatically.

vrf name Name of the VRF.

Configure HTTP Client application

The HTTP Client application is available by default. You can configure HTTP client settings, or you can view and modify existing settings.

Use this task to configure the settings.

Procedure

1.

Enter the XR config mode.

2.

Run the http client command in XR config mode.

Example:


Router #configure
Router(config)#http client ?
connection          Configure HTTP Client connection
response            How long HTTP Client waits for a response from the server
                    for a request message before giving up
secure-verify-host  Verify that if server certificate is for the server it is known as
secure-verify-peer  Verify authenticity of the peer's certificate
source-interface    Specify interface for source address
ssl                 SSL configuration to be used for HTTPS requests
tcp-window-scale    Set tcp window-scale factor for High Latency links
version             HTTP Version to be used in HTTP requests
vrf                 Name of vrf

Example:

This example shows how to set the TCP window-scale to 8.

Router(config)#http client tcp-window-scale 8

This example shows how to set the HTTP version to 1.0.

Router(config)#http client version 1.0
Note

The HTTP Client uses libcurl version 7.30.