Zoomed Image

AMSX Scripting Language - Command : httpsendnet

Summary

Send an HTTP POST or PUT request using the .NET HTTP stack with full credential and header support

Description

Issues an HTTP POST (or other method) to the URL specified by cmd. Supports content type, request body, credentials, HTTP method override, allow-all-status-codes flag, and forced character encoding. Use $result$ as argument 1 to send the current result buffer as the request body.

Parameters

ParameterDescription
cmdURL
Argument 0Content Type
Argument 1Text to send (as request.stream)
Argument 2User name
Argument 3Password
Argument 4Domain Name
Argument 5"POST", "PUT" or other HTTP method. default is "POST"
Argument 6Allow all status codes including 400. When this is set, a 400 will still set the response and will not raise an error. When this is not set, a 400 will raise an error
Argument 7Force Encoding (e.g. "1252" or "utf-8")

Syntax


HttpSendNet "URL", "Content Type", "Text to send (as request.stream)", "User name", "Password", "Domain Name", ""POST", "PUT" or other HTTP method. default is "POST"", "Allow all status codes including 400. When this is set, a 400 will still set the response and will not raise an error. When this is not set, a 400 will raise an error", "Force Encoding (e.g. "1252" or "utf-8")"

Return to the AMSX Command Reference