Post data and IE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jack

    Post data and IE

    Hi All,

    I've a problem using IE web browser component. I need to send a file
    into a server and to receive progress information during the upload.
    The IE webbrowser component have a nice event to retrieve progress changes.
    My problem is that with the Navigate method instead of use POST method
    the component send always a GET method altought I initialize the post
    data field.

    How can I do?

    This is my code:

    <code>
    var webBrowser = new ActiveXObject(" InternetExplore r.Application" );

    webBrowser.Navi gate("http://localhost:12000/prova.txt", "", "",
    "PostData", "Content-Type: application/x-www-form-urlencoded\r\n" );
    </code>

    Thank you
    Daniele
  • kaeli

    #2
    Re: Post data and IE

    In article <cie4r9$hlp$1@l acerta.tiscalin et.it>, nospam@nospam.i t enlightened
    us with...[color=blue]
    > Hi All,
    >
    > I've a problem using IE web browser component. I need to send a file
    > into a server and to receive progress information during the upload.
    > The IE webbrowser component have a nice event to retrieve progress changes.
    > My problem is that with the Navigate method instead of use POST method
    > the component send always a GET method altought I initialize the post
    > data field.
    >
    > How can I do?
    >
    > This is my code:
    >
    > <code>
    > var webBrowser = new ActiveXObject(" InternetExplore r.Application" );
    >
    > webBrowser.Navi gate("http://localhost:12000/prova.txt", "", "",
    > "PostData", "Content-Type: application/x-www-form-urlencoded\r\n" );
    > </code>
    >[/color]


    You seem to be sending post data as a string. It's a variant in VBScript. I
    don't know about JScript, but I'm pretty sure it isn't a string.

    Does this help?

    PostData
    Optional. Data to send to the server during the HTTP POST transaction. For
    example, the POST transaction is used to send data gathered by an HTML form
    to a program or script. If this parameter does not specify any post data, the
    Navigate method issues an HTTP GET transaction. This parameter is ignored if
    URL is not an HTTPURL.

    --
    --
    ~kaeli~
    The Bermuda Triangle got tired of warm weather. It moved to
    Finland. Now Santa Claus is missing.



    Comment

    Working...