psProxy - InetTransfer
Specifies the name of the Proxy server used, if any
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psProxy
| Access Type | Syntax |
|---|---|
| Read Access: | Get psProxy to StringVariable |
| Write Access: | Set psProxy to StringVariable/Value |
Description
psProxy specifies the name of the Proxy server used, if any. If the value of this property is blank, no proxy server is used.
This is used for FTP and HTTP for a proxy, not for HTTP authentication.
If you need to address a specific port on the remote end, use the piRemotePort property to do so.
Sample
Procedure OnClick
Boolean bStatus
Set psProxy of oHTTPTransfer to "proxy.somedomain.com"
Set piRemotePort of oHTTPTransfer to 8080
Get HttpGetRequest of oHTTPTransfer "" to bStatus
Send Info_Box bStatus "bStatus"
End_Procedure // OnClick
Sample
If you are using a proxy server, and the proxy server itself does not listen to the default port, then you can specify the proxy port as part of the psProxy property.
Procedure OnClick
Boolean bStatus
Set psProxy of oHTTPTransfer to "proxy.somedomain.com:8080"
Get HttpGetRequest of oHTTPTransfer "" to bStatus
Send Info_Box bStatus "bStatus"
End_Procedure // OnClick
See Also