PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Notes
  • Security error in a secure transaction
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Sends an HTTP request and waits for the response from the HTTP server.
Syntax

Syntax that is using an httpRequest variable Hide the details

<HTTP response> = <HTTP request>.Send()
<HTTP response>: httpResponse variable
Name of the httpResponse variable containing the response received from the HTTP server.
<HTTP request>: httpRequest variable
Name of httpRequest variable containing the characteristics of the HTTP request that will be sent to the server.

Asynchronous syntax that is using an httpRequest variable Hide the details

Send(<HTTP request> , <WLanguage procedure>)
<HTTP request>: httpRequest variable
Name of httpRequest variable containing the characteristics of the HTTP request that will be sent to the server.
<WLanguage procedure>: Procedure name
Name of WLanguage procedure called during the response from the HTTP server. This procedure has the following format:
PROCEDURE <Procedure name>(<Response> is httpResponse)
where <Response> is an httpResponse variable containing the response received from the HTTP server.
Remarks

Notes

  • To find out the runtime errors of this function, use ErrorOccurred and ErrorInfo.
  • If the management of cookies is implemented for the specified request (<httpRequest variable>.ManageCookie), the cookies 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.
  • Versions 21 and later
    From version 21, the redirections are automatically taken into account in the HTTP requests. To manually process the redirections in the HTTP requests, you must use ..IgnoreError of httpRequest variable associated with the httpIgnoreRedirection constant.
    New in version 21
    From version 21, the redirections are automatically taken into account in the HTTP requests. To manually process the redirections in the HTTP requests, you must use ..IgnoreError of httpRequest variable associated with the httpIgnoreRedirection constant.
    From version 21, the redirections are automatically taken into account in the HTTP requests. To manually process the redirections in the HTTP requests, you must use ..IgnoreError of httpRequest variable associated 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.
These errors are returned by ErrorInfo.
If one of these errors occurs, you can re-run the request while ignoring the errors. To do so, all you have to do is modify the ..IgnoreError property of httpRequest variable:
Error returned by ErrorInfo
(with the errCode constant)
Value of ..IgnoreError property of httpRequest variable
(these values can be combined)
Description
httpErrorInvalidCertificate
Invalid certificate or certificate coming from an unknown company
httpIgnoreInvalidCertificateThe certificate is ignored.
httpErrorInvalidCertificateName
The site name specified in the certificate does not correspond to a server
httpIgnoreInvalidCertificateNameThe site name specified in the certificate is ignored.
httpErrorExpiredCertificate
Invalid or expired certificate date
httpIgnoreExpiredCertificateThe certificate date is ignored
httpErrorRedirectToHTTP
Redirection to a non-secure server
httpIgnoreRedirectToHTTPThe redirection to a non-secure server is allowed.
httpIgnoreRedirectToHTTPS
Redirection to a secure server
httpIgnoreRedirectToHTTPSThe redirection to a secure server is allowed.
httpIgnoreRevocationThe 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.
Component : wd250com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment