M
marfi95
Hello all.
I'm not sure if this is the correct place to post this, but if not
please let me know.
This is my situation. I have a simple problem, but am having problems
doing this. I'm basically trying to upload a file from my .net app
running on my local pc to a unix webserver (running iplanet). Just
upload and store the file, thats it. I'm using webclient.uploadfile on
the client side. Since its an iplanet webserver, I cant use ASP.
I was looking into using a cgi perl script to capture the file and
write it out, but I'm not fluent in Perl, so I'm struggling there. Is
there a better way to do it ?
I found some cgi scripts that seem to expect the data come from
something like the following: I'm not coming from a browser, but an
application, so I'm not sure how to use this when passing the data
using webclient or httpwebrequest.
example:
<form method="POST" enctype="multipart/form-data"
action="../cgi-bin/fetchfile2.pl">
<p>
<input type="file" name="FileName" size="20"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset"
value="Reset" name="B2"></p>
</form>
How do I use the above, but from a webclient or httpwebrequest apis ?
Or maybe there is a better way ?
Any helpful information would be most appreciative.
Mark
I'm not sure if this is the correct place to post this, but if not
please let me know.
This is my situation. I have a simple problem, but am having problems
doing this. I'm basically trying to upload a file from my .net app
running on my local pc to a unix webserver (running iplanet). Just
upload and store the file, thats it. I'm using webclient.uploadfile on
the client side. Since its an iplanet webserver, I cant use ASP.
I was looking into using a cgi perl script to capture the file and
write it out, but I'm not fluent in Perl, so I'm struggling there. Is
there a better way to do it ?
I found some cgi scripts that seem to expect the data come from
something like the following: I'm not coming from a browser, but an
application, so I'm not sure how to use this when passing the data
using webclient or httpwebrequest.
example:
<form method="POST" enctype="multipart/form-data"
action="../cgi-bin/fetchfile2.pl">
<p>
<input type="file" name="FileName" size="20"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset"
value="Reset" name="B2"></p>
</form>
How do I use the above, but from a webclient or httpwebrequest apis ?
Or maybe there is a better way ?
Any helpful information would be most appreciative.
Mark