PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
HTTPAddParameter (Function)
In french: HTTPAjouteParamètre
Adds a parameter into 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 (with quotes)
Name of the HTTP form to use. This name was defined by HTTPCreateForm. An error occurs if the form does not exist.
<Parameter name>: Character string (with quotes)
Name of the parameter that must be added into the form. If the parameter already exists in the form, its value is overwritten.
<Parameter value>: Ansi or Unicode character string (with quotes) or Buffer
Value that must be given to the parameter.
Remarks
To add a file to the form, use HTTPAddFile.
Component : wd240com.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