|
|
|
|
|
- Notes
- Security error in a secure transaction
<httpRequest variable>.Send (Function) In french: <Variable httpRequête>.Envoie Sends an HTTP request and waits for the response from the HTTP server. Syntax
Syntax with an httpRequest variable Hide the details
<HTTP response> = <HTTP request>.Sends()
<HTTP response>: httpResponse variable Name of the httpResponse variable containing the response received from the HTTP server. <HTTP request>: httpRequest variable Name of the httpRequest variable that contains the characteristics of the HTTP request to be sent to the server. Remarks Notes - To find out the runtime errors of this function, use ErrorOccurred and ErrorInfo.
- If cookies have been implemented for the specified request (<httpRequest variable>.ManageCookie), they are updated in the httpRequest variable after the call to <httpRequest variable>.Send. Therefore, during the next call to <httpRequest variable>.Send with this request, the cookies will be taken into account.
- From version 21, the redirections are automatically taken into account in the HTTP requests. To manually process redirections in HTTP requests, you must use the IgnoreError property of the httpRequest variable with the httpIgnoreRedirection constant.
Security error in a secure transaction During a secure transaction, the request may fail due to security errors: - invalid certificate or certificate coming from an unknown company.
- the site name specified in the certificate does not correspond to a server.
- invalid or expired certificate date.
- redirection to a non-secure server.
If one of these errors occurs, you can re-run the request while ignoring the errors. To do so, simply modify the IgnoreError property of the httpRequest variable: | | | Error returned by ErrorInfo (with the errCode constant) | Value of the IgnoreError property of the httpRequest variable (these values can be combined) | Description |
---|
httpErrorInvalidCertificate Invalid certificate or certificate coming from an unknown company | httpIgnoreInvalidCertificate | The certificate is ignored. | httpErrorInvalidCertificateName The site name specified in the certificate does not correspond to a server | httpIgnoreInvalidCertificateName | The site name specified in the certificate is ignored. | httpErrorExpiredCertificate Invalid or expired certificate date | httpIgnoreExpiredCertificate | The certificate date is ignored | httpErrorRedirectToHTTP Redirection to a non-secure server | httpIgnoreRedirectToHTTP | The redirection to a non-secure server is allowed. | httpIgnoreRedirectToHTTPS Redirection to a secure server | httpIgnoreRedirectToHTTPS | The redirection to a secure server is allowed. | | httpIgnoreRevocation | The certificate found in the list of revoked certificates is not checked. |
Remarks: - When the HTTP queries are run in several threads, the HTTP.IgnoreError variable has a specific value for each thread.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|