Http_SendCustomRequest
Sends a custom HTTP request.
Syntax
C++
Python
def Http_SendCustomRequest( inUrl: str, inUrlParameters: list[str], inUrlParametersData: list[str], inHeaders: list[str], inHeadersData: list[str], inData: ByteBuffer, /, *, inMethod: HTTPRequestMethod = HTTPRequestMethod.GET, inTimeout: int = 60, inAllowUntrusted: bool = False, inCaCertFile: str | None = None ) -> ( outAnswer: ByteBuffer | None, outResponseCode: int )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inMethod | HTTPRequestMethod | HTTPRequestMethod.GET | Method of the request. | |
![]() |
inUrl | str | URL of the request. | ||
![]() |
inUrlParameters | list[str] | URL parameters. They will be automatically encoded. | ||
![]() |
inUrlParametersData | list[str] | URL parameters. They will be automatically encoded. | ||
![]() |
inHeaders | list[str] | Request headers to send. They will be automatically encoded. | ||
![]() |
inHeadersData | list[str] | Request headers to send. They will be automatically encoded. | ||
![]() |
inData | ByteBuffer | Binary data to be sent. | ||
![]() |
inTimeout | int | 0 - ![]() |
60 | Request timeout in seconds. |
![]() |
inAllowUntrusted | bool | False | Whether or not to allow untrusted SSL certificates. | |
![]() |
inCaCertFile | str | None | None | File holding one or more certificates to verify the peer with. | |
![]() |
outAnswer | ByteBuffer | None | Answer data. | ||
![]() |
outResponseCode | int | Answer code. Typically 200 for OK. |



