Home Site Map Buy Email
AdvSMTP
AdvIMAP4
AdvPOP3
AdvFile
AdvZIP
AdvGraphGenerator
AdvLDAP
AdvHTTP
AdvDSN
AdvDirectory
AdvRegistry
AdvMX
ASP Components >> AdvHTTP >> CF_HTTPPARAM
Download | Buy
CF_HTTPPARAM

CF_HTTPPARAM

CF_HTTPPARAM can either upload MIME file types to a server, or post cookie, formfield, URL, file, or CGI variables.

See also CF_HTTP.

Syntax

<CF_HTTPPARAM NAME="name"
    TYPE="type"
    VALUE="value"
    FILE="filename">

NAME

Required. A variable name for the data being passed.

TYPE

Required. The transaction type. Valid values are

  • URL
  • FORMFIELD
  • COOKIE
  • CGI
  • FILE

VALUE

Optional for TYPE="FILE". Specifies the value of the URL, FormField, Cookie, File, or CGI variable being passed.

FILE

Required for TYPE="FILE". Posts the specified file with request.

Example

<!--- This view-only example shows the use of CF_HTTPPARAM --->

<HTML>
<HEAD>
	<TITLE>CF_HTTPPARAM Example</TITLE>
</HEAD>
<BODY>

<H3>somefile.cfm</H3>
<H3>CF_HTTPPARAM Example</H3>
<H3>Output the passed variables</H3>

<CFOUTPUT>
    Form variable: #form.form_test#<BR>
    URL variable: #URL.url_test#<BR>
    Cookie variable: #Cookie.cookie_test#<BR>
    CGI variable: #CGI.cgi_test#<BR>
</CFOUTPUT>

</BODY>
</HTML>

<HTML>
<HEAD>
	<TITLE>CF_HTTPPARAM Example</TITLE>
</HEAD>
<BODY>

<H3>CF_HTTPPARAM Example</H3>

<P>This view-only example shows the use of CF_HTTPPARAM 
to show the values of passed variables on another HTML
reference, accessed by CF_HTTP.</P>

<CF_HTTP URL="http://localhost/somefile.cfm"
	 METHOD="POST">
	 
	 <CF_HTTPPARAM NAME="form_test" 
		       TYPE="FormField" 
		       VALUE="This is a form variable">
	 <CF_HTTPPARAM NAME="url_test" 
		       TYPE="URL" 
		       VALUE="This is a URL variable">
	 <CF_HTTPPARAM NAME="cgi_test" 
		       TYPE="CGI" 
		       VALUE="This is a CGI variable">
	 <CF_HTTPPARAM NAME="cookie_test" 
		       TYPE="Cookie" 
		       VALUE="This is a cookie">
</CF_HTTP>

</BODY>
</HTML>