« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Full Range of Web Access Support
Pass Parameters to an HTTP Server
Send parameters to a server.
In[1]:=
X
URLFetch["http://exampledata.wolfram.com/getJSON.php", "Parameters" -> {"title" -> "A New Kind of Science", "author" -> "Stephen Wolfram", "published" -> "2002"}]
Out[1]=
Send passwords to a server.
In[2]:=
X
URLFetch["http://exampledata.wolfram.com/authentication.php", "Username" -> "Joe", "Password" -> "topsecret"]
Out[2]=
Manually pass headers to an HTTP server.
In[3]:=
X
URLFetch["http://exampledata.wolfram.com/headers.php", "Headers" -> {"MyHeader" -> "42"}]
Out[3]=