VintaSoftTwain Control v6.0
VintaSoftTwain Object / HttpUpload_SetServerParams Method
Full url to a web script of image uploading. For example: http://www.vintasoft.com/scripts/vstwain-demo-upload.cgi
The Referer parameter allows to specify the address (Url) of the resource from which the request was obtained. For example: http://www.vintasoft.com/vstwain-demo-upload.html. This is not required parameter.

Specifies the timeout period assigned to the read-write operations with server. Default value is 3 seconds.

In This Topic
    HttpUpload_SetServerParams Method
    In This Topic
    Description
    Sets parameters that should be used for connecting to HTTP server.
    Syntax
    Visual Basic
    Public Function HttpUpload_SetServerParams( _
       ByVal url As String, _
       ByVal referer As String, _
       ByVal timeout As Long _
    ) As Boolean
    Parameters
    url
    Full url to a web script of image uploading. For example: http://www.vintasoft.com/scripts/vstwain-demo-upload.cgi
    referer
    The Referer parameter allows to specify the address (Url) of the resource from which the request was obtained. For example: http://www.vintasoft.com/vstwain-demo-upload.html. This is not required parameter.
    timeout

    Specifies the timeout period assigned to the read-write operations with server. Default value is 3 seconds.

    Return Type
    TRUE (1) if method is executed successfully, FALSE (0) otherwise.
    Remarks
    By default the port 80 is used as a server port.
    But you can use another port as a server port: url = "http://www.your-server.com:8080/asp/upload.asp"
    Also you can specify server as IP address: url = "http://192.168.0.1:81/cgi-bin/upload.cgi"

    The proxy server parameters can be set using the HttpUpload_SetProxyServerParams method.

    Information about error that occurs during method execution can be get using the Error and ErrorString properties.
    Example
    TWAIN Advanced Demo demonstrates how to acquire image from scanner and upload it onto HTTP server.
    See Also