Method 1:
Webbrowser1.silent: = true;
Webbrowser1.navigate (URL );
Repeat
Application. processmessages;
Until webbrowser1.readystate = readystate_complete;
Webbrowser1.navigate (
'Javascript: Document. getelementbyid ("detailformid"). Submit ();');
Repeat
Application. processmessages;
Until webbrowser1.readystate = readystate_complete;
Memo1.clear;
Memo1.text: = webbrowser1.oleobject.document.doc umentelement. innerhtml;
Method 2:
URL: = 'HTTP: // fedex.com/tracking ';
Idhttp: = tidhttp. Create (application );
Idhttp. Request. useragent: = 'mozilla/3.0 ';
Idhttp. handleredirects: = true;
Idhttp. readtimeout: = ctimeout;
Params: = tstringlist. Create;
Params. Add ('tracknumbers = '+ trackID );
Params. Add ('cntry _ code = us ');
HTML: = idhttp. Post (URL, Params );
Return HTML text table description
Table title bar Definition
<Table border = "0" cellpadding = "0" cellspacing = "0" class = "datatable">
<Tr>
<TH> location </Th>
<TH> date </Th>
<TH> local time </Th>
<TH class = "full"> activity </Th>
</Tr>
Define a row of records in the table
<Tr class = "odd">
<TD class = "nowrap">
Botany,
Australia
</TD>
<TD class = "nowrap">
08/01/2011
</TD>
<TD class = "nowrap">
11: 57 a.m.
</TD>
<TD> delivered
</TD>
</Tr>