PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 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.
Component : wd240com.dll
See also
Minimum version required
  • Version 12
This page is also available for…
Comments
Example Use
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/2875-informatica-exemplo-google-maps-com-json-retornando-distancia-2878/read.awp?hl=httpcreateform
BOLLER
26 Sep. 2019
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
24 Jul. 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
20 Jun. 2016