SetValue

Sets the value of an HTTP header.

You can’t use this function to change the host and content-length headers. The value of host is always set to the domain of the URL that the request was sent to. The value of content-length is always set to the length of the content in the request.

SetValue(1, 2)

OrdinalTypeDescription
1stringRequired. The name of the header to set.
2stringRequired. The value to set for the header.

This example sets the From address in the HTTP header.