|
Properties

Most of the properties are used for setting the values for the binding
operation in IBindstatuscallback.GetBindInfo.
AdditionalHeader:
If additional request headers are needed you can either add it as a simple
string value in AdditionalHeader or use the OnResponse event.
The following code use AdditionalHeader in a POST operation:
procedure
TForm1.Button1Click(Sender: TObject); begin with
IEDownload1 do begin Method := POST; AdditionalHeader :=
'Content-Type:application/x-www-form-urlencoded\r\n'; PostData :=
'Firstname=Per&Lastname=Larsen';
Go('http://localhost/posttest.asp'); end; end;
|
Codepage:
Value that contains the code page used to perform the conversion. This can be
one of the following values:
-
| Ansi |
ANSI code
page |
| Mac |
Macintosh code
page |
| OEM |
OEM code
page |
| Symbol |
Symbol code page
(42) |
| ThreadsAnsi |
Current thread's ANSI code page |
| UTF7 |
Translate using
UTF-7 |
| UTF8 |
Translate using
UTF-8 |
Method:
- GET
- Perform an HTTP GET operation, the default operation.
- POST
- Perform an HTTP POST operation. The data to be posted should be specified in
PostData.
- PUT
- Perform an HTTP PUT operation. The data to put should be specified in
PostData
- CUSTOM
- Perform a custom operation that is protocol-specific. See CustomVerb.
The data to be used in the custom operation should be specifiedd in Postdata.
CustomVerb:
String specifying a
protocol-specific custom action to be performed during the bind operation (only
if Method is set to CUSTOM).
ExtraInfo:
this string is appended to the URL when the bind operation is started.
Postdata:
Stringvalue to use in POST or PUT operations. See AdditionalHeader.
Security:
Setting SecurityAttributes in the BindInfo.Contains the descriptor for the
object being bound to and indicates whether the handle retrieved by specifying
this structure is inheritable.
TimeOut:
User-defined timeout interval (in milliseconds). 0 disable timeout.
e.g.
TimeOut:=45000;
UrlEncode:
- STGMEDDATA
- Use URL encoding to pass in the data provided in Postdata for PUT and
POST operations.
- EXTRAINFO
- Use URL encoding to pass in the data provided in ExtraInfo.
PutFilename:
The Data in PutFileName will be transferred if you use Method Put.
The following code shows how to upload file 'C:\test.zip' to server (here
PWS). Make sure you have write-permission to the
directory.
procedure
TForm1.Button1Click(Sender:
TObject); begin IEDownload1.Method:=put; IEDownload1.PutFileName:='C:\test.zip'; IEDownload1.go('http://localhost/test.zip'); end; |
UserAgent:
Set useragent. Default
Useragent-string is loaded from users registry
|