Click to See Complete Forum and Search --> : Manage WEB in background


satanorz
November 19th, 2008, 10:14 AM
Hi all, long time since last time i visit you.

My problem now is very rare i think, i need to login, manage and upload files to a third party web (like Imageshack), using an application in .net, so the upload will be automated by database data.

The problem is that i want to make it in background, so i can't use keyb & mouse macros, and at this point, i don't know how to make it possible.

Any ideas?

HairyMonkeyMan
November 19th, 2008, 10:33 AM
Is it an upload through a form submission?

satanorz
November 19th, 2008, 12:17 PM
Yes, but need to store cookies at first place, so it's a little more complicated.

HairyMonkeyMan
November 20th, 2008, 06:42 AM
Think of it in simple terms.

You need to request the cookie - Thats one web request,
You need to request the form submission - Thats the second request.

I had to do something similar recently, but there was no cookie involved. My login and upload is all handled during the one request (form submission) like this:

*** CODE REMOVED TO PREVENT MISUSE ***

If you need to first login, then you need another HttpWebRequest object to login and get the cookie.

Hope this helps, let me know :)