CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005
    Location
    Spain!
    Posts
    149

    Talking Manage WEB in background

    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?

  2. #2
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362

    Re: Manage WEB in background

    Is it an upload through a form submission?
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook


    0100 1101 0110 1001 0110 0011 0110 1000 0110 0001 0110 0101 0110 1100 0010 0000 0100 0101 0110 1100 0110 1100 0110 0101 0111 0010

  3. #3
    Join Date
    Aug 2005
    Location
    Spain!
    Posts
    149

    Re: Manage WEB in background

    Yes, but need to store cookies at first place, so it's a little more complicated.

  4. #4
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362

    Re: Manage WEB in background

    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
    Last edited by HairyMonkeyMan; November 24th, 2008 at 03:55 AM.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook


    0100 1101 0110 1001 0110 0011 0110 1000 0110 0001 0110 0101 0110 1100 0010 0000 0100 0101 0110 1100 0110 1100 0110 0101 0111 0010

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured