By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,226 Members | 1,193 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,226 IT Pros & Developers. It's quick & easy.

Simulating a web form upload through windows based application

P: n/a
Hi,

I am developing a standalone or windows based application in vb.net which
simulates a website.

I would like to simulate this web form from my vb.net application:

<form action ="cgi-images/accept_upload.pl" method = POST
ENCTYPE="multipart/form-data">
<input type = text name = uname>
<input type = password name =passwd>
<input type = FILE name = file1>
<input type = FILE name = file2>
<input type = FILE name = file3>
<input type = FILE name = file4>
<input type=submit>
</form>
I need help in this regard.

I referred the following site :

http://www.codeproject.com/csharp/UploadFileEx.asp

The code in this site is not working as it simulates the following webform:

<form action ="http://localhost/test.php" method = POST>
<input type = text name = uname>
<input type = password name =passwd>
<input type = FILE name = uploadfile>
<input type=submit>
</form>

With this code , I am getting the following error:

"Cannot handle redirect from http/https protocols to other dissimilar ones"

Any kind of help is appreciable.

I need this help as early as possible.

Thank you.
Balu.


Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
balu wrote:
Hi,

I am developing a standalone or windows based application in vb.net
which simulates a website.

I would like to simulate this web form from my vb.net application:

<form action ="cgi-images/accept_upload.pl" method = POST
ENCTYPE="multipart/form-data"> <input type = text name = uname>
<input type = password name =passwd>
<input type = FILE name = file1>
<input type = FILE name = file2>
<input type = FILE name = file3>
<input type = FILE name = file4>
<input type=submit>
</form>
I need help in this regard.

I referred the following site :

http://www.codeproject.com/csharp/UploadFileEx.asp

The code in this site is not working as it simulates the following
webform:

<form action ="http://localhost/test.php" method = POST>
<input type = text name = uname>
<input type = password name =passwd>
<input type = FILE name = uploadfile>
<input type=submit>
</form>

With this code , I am getting the following error:

"Cannot handle redirect from http/https protocols to other dissimilar
ones"


It would be interesting to see the HTTP traffic in this case. Can you
capture the traffic using Fiddler (www.fiddlertool.com)?

Cheers,

--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.