Http_SendRequest_PATCH_JSON


Sends a PATCH request in JSON format to the server and receives a text answer.

Syntax

C++
Python
 
def Http_SendRequest_PATCH_JSON(
	inUrl: str,
	inHeaders: list[str],
	inHeadersData: list[str],
	inJsonData: str,
	/,
	*,
	inTimeout: int = 60,
	inAllowUntrusted: bool = False,
	inCaCertFile: str | None = None
)
-> (
	outAnswer: str | None,
	outResponseCode: int
)

Parameters

Name Type Range Default Description
Input value inUrl str URL of request.
Input value inHeaders list[str] Request headers to send. They will be automatically encoded.
Input value inHeadersData list[str] Request headers to send. They will be automatically encoded.
Input value inJsonData str Request JSON to send.
Input value inTimeout int 0 - 60 Request timeout in seconds.
Input value inAllowUntrusted bool False Whether or not to allow untrusted SSL certificates.
Input value inCaCertFile str | None None File holding one or more certificates to verify the peer with.
Output value outAnswer str | None Answer text if provided in UTF-8 encoding.
Output value outResponseCode int Answer code. Typically 200 for OK.