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.

Re: Simulating a web form upload through windows based application by Joerg

Joerg
Wed Jul 20 14:00:26 CDT 2005

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:news-reply@joergjooss.de