Results 1 to 3 of 3

Thread: [2005] login to an aspx page httpwebrequest

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    5

    [2005] login to an aspx page httpwebrequest

    Hi all

    I'm making a little application to use at work which, hopefully, logs in to a company aspx site and extracts user status, such as if the user exist (I will pass the personell number as a query which returns user name etc). I can make this happen when I embed a browser to the application, but I would like it to be done without the use of a browser object. Any pointers on how to go about doing this? Will I need to add code for proxy as well if I drop the browser from the form?

    Edward.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] login to an aspx page httpwebrequest

    Yes, you'll need to detect the current internet connection settings from your application, then based upon that, give the WebRequest credentials for use in the proxy server.

    If the login page also requires SSL, you will have to handle that separately by accepting the certificate.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    5

    Re: [2005] login to an aspx page httpwebrequest

    Thanks so far, I've tryed to google and search sevral forums for a snippit of code to put me on track regarding the login etc. All I've found so far is to catch the session (fiddler) an get some ID from the asp that must be passed along the POST. I'm now lost, and a bit over my head - anyone have some code for me to play with for a starter?

    Edward.

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