ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / HTTP functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
HTTPAddParameter (Function)
In french: HTTPAjouteParamètre
Adds a parameter to an HTTP form. This form was created by HTTPCreateForm and it will be sent by HTTPSendForm.
Example
HTTPCreateForm("FORM")
HTTPAddParameter("FORM", "Price", "3400")
...
HTTPSendForm("FORM", "www.mysite.com")
Syntax
HTTPAddParameter(<Form name> , <Parameter name> , <Parameter value>)
<Form name>: Character string
Name of the HTTP form to use. This name was defined with HTTPCreateForm. An error occurs if the form does not exist.
<Parameter name>: Character string
Name of the parameter to be added to the form. If the parameter already exists in the form, its value is overwritten.
<Parameter value>: Ansi or Unicode string, or Buffer
Value that must be given to the parameter.
Remarks
To add a file to the form, use HTTPAddFile.
Component: wd290com.dll
See also
Minimum version required
  • Version 12
This page is also available for…
Comments
EXAMPLE: HTTPCreateForm / HTTPSendForm / HTTPRequest
//Example

//Identify the screen field name of html code

sPostParameter is string = "name = Adriano"

IF HTTPRequest("www.mysite.com", "", "", sPostParameter) = True THEN
Info("Request OK, result:", HTMLToText(HTTPGetResult(httpResult)))
END

HTTPCreateForm("FORM")
HTTPAddParameter("FORM", "name", "Adriano")

IF HTTPSendForm("FORM","www.mysite.com" ) = True THEN
Info("Request OK, result:", HTMLToText(HTTPGetResult(httpResult)))
END
BOLLER ADRIANO
24 Jul. 2016
LINK ADICIONAL
http://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/1533-exemplo-uso-dos-comandos-httpcreateform-httpaddparameter-httpsendform-httpgetresult/read.awp
BOLLER ADRIANO
24 Jul. 2016

Last update: 05/26/2022

Send a report | Local help