In article <ci**********@lacerta.tiscalinet.it>,
no****@nospam.it enlightened
us with...
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("InternetExplorer.Application" );
webBrowser.Navigate("http://localhost:12000/prova.txt", "", "",
"PostData", "Content-Type: application/x-www-form-urlencoded\r\n");
</code>
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.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace