This https-client sample starts to send HTTP GET/HEAD/POST requests same way as http-client, to https server that can be found in net-tools repository. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
45 lines
923 B
Plaintext
45 lines
923 B
Plaintext
CONFIG_RANDOM_GENERATOR=y
|
|
|
|
CONFIG_NETWORKING=y
|
|
CONFIG_NET_TCP=y
|
|
CONFIG_NET_ARP=y
|
|
CONFIG_NET_L2_ETHERNET=y
|
|
CONFIG_NET_LOG=y
|
|
CONFIG_NET_SHELL=y
|
|
|
|
CONFIG_NET_IFACE_UNICAST_IPV4_ADDR_COUNT=2
|
|
CONFIG_NET_IFACE_UNICAST_IPV6_ADDR_COUNT=2
|
|
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5
|
|
|
|
CONFIG_INIT_STACKS=y
|
|
|
|
CONFIG_NET_PKT_RX_COUNT=64
|
|
CONFIG_NET_PKT_TX_COUNT=64
|
|
CONFIG_NET_BUF_RX_COUNT=64
|
|
CONFIG_NET_BUF_TX_COUNT=64
|
|
|
|
CONFIG_NET_IPV4=y
|
|
CONFIG_NET_DHCPV4=y
|
|
CONFIG_NET_IPV6=y
|
|
|
|
CONFIG_HTTP_CLIENT=y
|
|
CONFIG_HTTPS=y
|
|
CONFIG_MBEDTLS=y
|
|
CONFIG_MBEDTLS_BUILTIN=y
|
|
CONFIG_MBEDTLS_CFG_FILE="config-mini-tls1_2.h"
|
|
|
|
CONFIG_STDOUT_CONSOLE=y
|
|
CONFIG_NET_SHELL=y
|
|
|
|
# Set the IP addresses here or in the
|
|
# src/config.h file
|
|
#
|
|
CONFIG_NET_APP_SETTINGS=y
|
|
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::1"
|
|
CONFIG_NET_APP_PEER_IPV6_ADDR="2001:db8::2"
|
|
CONFIG_NET_APP_MY_IPV4_ADDR="192.0.2.1"
|
|
CONFIG_NET_APP_PEER_IPV4_ADDR="192.0.2.2"
|
|
|
|
CONFIG_NET_MGMT=y
|
|
CONFIG_NET_MGMT_EVENT=y
|