XMLHttpRequest Methods: setRequestHeader()

By: Dusty Arlia
Published on Sunday, October 12, 2014 at 11:53 AM
Last Updated on Wednesday, July 15, 2015 at 12:51 PM
Total Updates: 2

The setRequestHeader() method of the XMLHttpRequest object specifies an HTTP request header that should be included in the request. This method takes two arguments: a name and value.