Bug fix and improved `payload` handling in `http_client_req`. Changes to `http_client_req` behaviour: If the user provides `payload_len` it is used to generate the `Content-Length` header. This is done even if `payload_cb` is used to provide the actual data. If no `payload_len` is specified then no `Content-Length` is generated. If `payload_cb` is provided it is called to send the payload data. Otherwise `payload` is used as the payload buffer and sent. If `payload_len` is not zero, it is used as the size of `payload`. Otherwise `payload` is assumed to be a string and `strlen` is used to determine its size. This is to maintain current behaviour and not break existing samples. Fixes #24431 Signed-off-by: Arvin Farahmand <arvinf@ip-logix.com> |
||
|---|---|---|
| .. | ||
| bt.h | ||
| buf.h | ||
| can.h | ||
| coap_link_format.h | ||
| coap.h | ||
| dhcpv4.h | ||
| dns_resolve.h | ||
| dummy.h | ||
| ethernet_mgmt.h | ||
| ethernet_vlan.h | ||
| ethernet.h | ||
| gptp.h | ||
| hostname.h | ||
| http_client.h | ||
| http_parser_state.h | ||
| http_parser_url.h | ||
| http_parser.h | ||
| ieee802154_mgmt.h | ||
| ieee802154_radio.h | ||
| ieee802154.h | ||
| ipv4_autoconf.h | ||
| lldp.h | ||
| lwm2m.h | ||
| mii.h | ||
| mqtt.h | ||
| net_config.h | ||
| net_conn_mgr.h | ||
| net_context.h | ||
| net_core.h | ||
| net_event.h | ||
| net_if.h | ||
| net_ip.h | ||
| net_l2.h | ||
| net_linkaddr.h | ||
| net_mgmt.h | ||
| net_offload.h | ||
| net_pkt.h | ||
| net_stats.h | ||
| net_timeout.h | ||
| openthread.h | ||
| ppp.h | ||
| promiscuous.h | ||
| ptp_time.h | ||
| sntp.h | ||
| socket_can.h | ||
| socket_net_mgmt.h | ||
| socket_offload.h | ||
| socket_select.h | ||
| socket.h | ||
| socketutils.h | ||
| tls_credentials.h | ||
| trickle.h | ||
| udp.h | ||
| websocket.h | ||
| wifi_mgmt.h | ||
| wifi.h | ||