1049 Information from the Web
As before, the URL of this page has two parts separated by a question
mark:
1. The actual address: http://moneycentral.msn.com/investor/charts/
chartdl.aspx
2. Information for the page to act on: Symbol=$INDU&PT=2
The information in the second part of the URL is part of the HTML
standard and is called a get parameter structure. It consists of name=value
pairs separated by &. In this case,
•
Symbol=$INDU: This pair selects the ticker-tape symbol, in this case
the Dow Jones Industrial Average.
•
PT=2: This pair selects the display period for the chart: PT=0 is intraday,
PT=1 is fi ve-day, PT=2 is 10-day (and is the current selection), and so on
up to PT=10 for a 10-year chart.
41.6 Web Queries: Parameters
The interface presented by the Web query wizard has no provision for
parameter information to be passed to the query. We can, however, use
a roundabout way to force the issue.
Here is an iqy fi le querying a Web document that expects one numeri-
cal parameter called s.
We make a small change to the iqy fi le, replacing s with [“Ticker-Tape
Symbol?”]. This step results in a parametric query: