HTTPParam

I add an HTTP param to an HTTP call.

Component Signature

<bx:HTTPParam type=[string]
name=[string]
value=[any]
file=[string]
encoded=[boolean]
mimetype =[string] />

Attributes

Atrribute
Type
Required
Description
Default

type

string

true

name

string

false

value

any

false

file

string

false

encoded

boolean

false

false

mimetype

string

false

Examples

Script Syntax

Run Example

bx:http method="POST" charset="utf-8" url="https://www.google.com/" result="result" {
	bx:httpparam name="q" type="formfield" value="bx";
}
writeDump( result );

BX:HTTP Tag Syntax

<bx:http result="result" method="POST" charset="utf-8" url="https://www.google.com/">
    <bx:httpparam name="q" type="formfield" value="bx">
</bx:http>
<bx:dump var="#result#">

Last updated

Was this helpful?