URLSave
URLSave["url"]
saves the content of the URL to a file in $TemporaryDirectory.
URLSave["url","file"]
saves the content of the URL to a file.
URLSave["url","file",elements]
returns the specified elements from a URL.
Details and Options
- Types of elements supported:
-
"Headers" a list of all headers received from the URL "Cookies" a list of all known cookies "StatusCode" the status code returned by the server - The following forms of element specifications can be given:
-
"elem" return a single element {elem1,elem2,…} return several elements {"Rules",{elem1,elem2,…}} return several elements as a list of rules "Rules" return all possible elements as a list of rules "All" return all possible elements as a list - The following options can be given:
-
Method "GET" method to use for request "Parameters" {} parameters to be sent for the request "Body" "" contents of message body to be sent "MultipartElements" {} list of multipart data elements to send "Username" "" username to use for the request "Password" "" password to use for the request "Headers" {} headers to be manually sent to the HTTP server "Cookies" Automatic cookies to pass to the server "StoreCookies" True whether to store received cookies "VerifyPeer" True verify authenticity using SSL certificates "UserAgent" Automatic user agent string to send "ReadTimeout" 0 time to allow for uploading or downloading data "ConnectTimeout" 0 time to allow for connecting to the server BinaryFormat True whether to avoid textual interpretation of newlines or other data "FollowRedirects" True whether to follow redirects
Examples
open allclose allBasic Examples (3)
Options (13)
"StoreCookies" (1)
If False, "StoreCookies" will not place any new cookies found while connecting to the site in the global cookie share:
"ReadTimeout" (1)
Text
Wolfram Research (2012), URLSave, Wolfram Language function, https://reference.wolfram.com/language/ref/URLSave.html.
CMS
Wolfram Language. 2012. "URLSave." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/URLSave.html.
APA
Wolfram Language. (2012). URLSave. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLSave.html