PC Review


Reply
Thread Tools Rate Thread

Automate Post

 
 
Chris
Guest
Posts: n/a
 
      4th Feb 2007
I have a web page that I want to automate a post to. I would use the web
request. However the post involves a file upload. What would be the best way
of doing this? Regards, Chris.


 
Reply With Quote
 
 
 
 
Nathan Sokalski
Guest
Posts: n/a
 
      4th Feb 2007
Unfortunately, there is no way to do that. The reason for this is because as
a security measure, there is no way to programmatically select the file that
the FileUpload control (which generates an input type="file" tag). Sorry,
but security does have it's occasional drawbacks.
--
Nathan Sokalski
(E-Mail Removed)
http://www.nathansokalski.com/

"Chris" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a web page that I want to automate a post to. I would use the web
>request. However the post involves a file upload. What would be the best
>way of doing this? Regards, Chris.
>



 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      4th Feb 2007
Sorry I didn't make myself clear. There is a form I manually have to upload
a file to. I have the file and want to automate the process by posting a
stream to the form and have it upload and process the file.Regards, Chris.

"Nathan Sokalski" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Unfortunately, there is no way to do that. The reason for this is because
> as a security measure, there is no way to programmatically select the file
> that the FileUpload control (which generates an input type="file" tag).
> Sorry, but security does have it's occasional drawbacks.
> --
> Nathan Sokalski
> (E-Mail Removed)
> http://www.nathansokalski.com/
>
> "Chris" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I have a web page that I want to automate a post to. I would use the web
>>request. However the post involves a file upload. What would be the best
>>way of doing this? Regards, Chris.
>>

>
>



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      4th Feb 2007
"Nathan Sokalski" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> Sorry, but security does have it's occasional drawbacks.


Though not in this case, obviously...


 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      5th Feb 2007
You can use one of the overloaded methods of the simplified WebClient Class.
I believe it is "UploadData".
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"Chris" wrote:

> Sorry I didn't make myself clear. There is a form I manually have to upload
> a file to. I have the file and want to automate the process by posting a
> stream to the form and have it upload and process the file.Regards, Chris.
>
> "Nathan Sokalski" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Unfortunately, there is no way to do that. The reason for this is because
> > as a security measure, there is no way to programmatically select the file
> > that the FileUpload control (which generates an input type="file" tag).
> > Sorry, but security does have it's occasional drawbacks.
> > --
> > Nathan Sokalski
> > (E-Mail Removed)
> > http://www.nathansokalski.com/
> >
> > "Chris" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >>I have a web page that I want to automate a post to. I would use the web
> >>request. However the post involves a file upload. What would be the best
> >>way of doing this? Regards, Chris.
> >>

> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate Append Query to Run Whenever New Records Post Katie D Microsoft Access Getting Started 3 20th May 2008 02:24 AM
Automate post-SP2 hotfixes when XP Pro is an upgrade version? =?Utf-8?B?V2FsbHlHcm9tbWl0?= Windows XP Setup 8 28th Mar 2007 10:26 PM
Automate HTML Login/Post Actions morau99@hotmail.com Microsoft Access VBA Modules 0 28th Oct 2006 09:22 PM
How to automate with vb6 - can automate two lines but no more :-( =?Utf-8?B?UGhvZW5peDFfdWs=?= Microsoft Powerpoint 1 14th Aug 2006 04:34 PM
Automate Customer Comments Back & Post on Site jimmy Microsoft Frontpage 5 18th Nov 2003 12:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:20 AM.