HTTPRequest
Background & Context
-
- HTTP message request format.
- Used by all HTTP clients to make requests from a remote server.
- Textual format, with encoded binary data.
- Supports Multipurpose Internet Mail Extensions (MIME).
- Supports RFC 2616.
Import & Export
- Import["file","HTTPRequest"] returns an HTTPRequest.
- Export["file",request,"HTTPRequest"] exports an HTTPRequest request.
- See the following reference pages for full general information:
-
Import, Export import from or export to a file CloudImport, CloudExport import from or export to a cloud object ImportString, ExportString import from or export to a string ImportByteArray, ExportByteArray import from or export to a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements
Examples
Basic Examples (1)
Export an HTTPRequest:
Export["response.txt", HTTPRequest[Association["Scheme" -> "http", "Domain" -> "www.wolframalpha.com",
"Query" -> {"i" -> "200 usd in eur"}],
Association["ContentType" -> "application/x-www-form-urlencoded"]], "HTTPRequest"]Import["response.txt", "HTTPRequest"]See Also
Import Export CloudExport CloudImport HTTPRequest HTTPResponse URLRead
Formats: HTTPResponse
Related Guides
History
Introduced in 2018 (11.3)