PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Freeing resources
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
HTTPCreateForm (Function)
In French: HTTPCréeFormulaire
Creates an HTTP form. This form can be sent by HTTPSendForm and it can be handled by the functions for managing HTTP forms.
Versions 16 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WEBDEV - Server codePHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codePHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 19 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 19
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
HTTPCreateForm("FORM")
...
HTTPSendForm("FORM", "www.mysite.com")
Syntax
HTTPCreateForm(<Form Name>)
<Form Name>: Character string (with quotes)
Name of HTTP form. This name is used to handle the HTTP form by programming (with HTTPAddParameter for example). The form is cleared if it already exists.
Remarks

Freeing resources

The form declaration can be canceled by HTTPCancelForm. This function is used to free the allocated resources. The allocated resources are automatically freed:
  • at the end of the current thread (or the end of the application if it is the main thread).
  • during the call to HTTPSendForm.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Linux wd230com.so
Android wd230android.jar
See also
Minimum required version
  • Version 12
This page is also available for…
Comments
LINK EXEMPLO ADICIONAL
http://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/1533-exemplo-uso-dos-comandos-httpcreateform-httpaddparameter-httpsendform-httpgetresult/read.awp
BOLLER ADRIANO
Jul. 24 2016
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
Jun. 20 2016