|
|
|
|
|
Remark: These functions are also available in prefix syntax ( HTTP functions (prefix syntax)).
The following functions are used to handle the Internet pages, to send HTTP forms, ...:
| | HTTPAddFile | Adds a file to the HTTP form. | HTTPAddParameter | Adds a parameter to an HTTP form. | HTTPCancelForm | Cancels the declaration of an HTTP form and frees all its resources. | HTTPCertificate | Modifies the client certificate used by default to identify oneself on a server. | HTTPConfigure | Configures the functions that use the HTTP protocol. | HTTPCookieGet | Retrieves the cookies read by a call: | HTTPCookieManage | Enables or disables the management of cookies in an HTTP request run: | HTTPCookieRead | Returns the value of a cookie received further to an HTTP request. | HTTPCookieReplace | Replaces all the cookies stored for a domain: | HTTPCookieReset | Deletes all cookies (globally or for a domain) stored: | HTTPCookieWrite | Adds or modifies a cookie in an HTTP request. | HTTPCreateForm | Creates an HTTP form. | HTTPDestination | Indicates the backup file for the result of next HTTP request, run in the same thread. | HTTPGetResult | Retrieves the result or the header of last HTTP request run. | HTTPListCertificate | Lists the client certificates found on the computer to authenticate on a server. | HTTPProgressBar | Displays a progress bar when: - receiving the response to an HTTP request.
- sending an HTTP form (HTTPSendForm) or an HTTP query.
| HTTPRequest | Starts an HTTP request on a server. | HTTPResetForm | Clears an HTTP form that is currently edited. | HTTPSend | Sends an HTTP request and waits for the response from the HTTP server. | HTTPSendForm | Sends an HTTP form. | HTTPSimulateNetwork | Simulates a slow network by limiting the download and upload speed. | HTTPTimeOut | Sets the timeout for WLanguage functions that use the HTTP protocol (HTTPRequest, SOAPExecute, DotNetExecute, J2EEExecute, etc.). | InternetConnected | Defines whether an Internet connection is enabled on the current computer. In mobile, you can also be notified when the status of the Internet connection changes. | OpenAPIToHTTP | Builds the HTTP request to call a function of an API. It can then be sent using HTTPSend. | Proxy | Specifies whether the communication functions that use HTTP or HTTPS must go through a proxy to execute their requests. A proxy is used to share the access to Internet between the different network computers. | RESTSend | Sends a REST request and waits for the server response. |
The following advanced types can be used with the HTTP functions:
| | Cookie | The Cookie type is used to handle the cookies transmitted in the HTTP requests. | httpProgress | The httpProgress type is used to manage the progress when sending or receiving an HTTP request. | httpRequest | The httpRequest type is used to retrieve the advanced characteristics of an HTTP/HTTPS request. | httpResponse | The httpResponse type is used to get the advanced characteristics of the response of the HTTP/HTTPS request. | restRequest | The restRequest type is used to define the advanced characteristics of a REST request. | restResponse | The restResponse type is used to define all the advanced characteristics of a REST response. |
Related Examples:
|
Complete examples (WINDEV): WD HTTP Proxy
[ + ] This WINDEV example is a simplified HTTP proxy. You can save connections and find out which pages were viewed.
|
|
Sample components (WINDEV): WD Trace Socket
[ + ] The purpose of this example is to trace everything that occurs on a communication via socket, on a specific address, on a specific port. This example allows you to understand the principle of dialog via socket between two applications. Therefore, in the applications that dialog via socket, even if no trace option as implemented by the developers, you will have he ability to view all the exchanges performed on the socket. This example also enables you to understand the operating mode of the network protocols based on the sockets: POP3, SMTP, FTP, HTTP, and so on. Note for the users who are experienced in network communication: This example does not allow you to trace the UDP packages (only the TCP communications can be traced).
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|