Jump to content

  •  

  • iBotModz CBox


    Photo

    Logging into a site


    This topic has been archived. This means that you cannot reply to this topic.
    1 reply to this topic

    #1 yungbol

    yungbol

      Firmware Expert

    • Global Mods

    • 1,461 posts
    • Joined: 09-April 08

    Posted 19 October 2009 - 07:59 PM

    I usually use a webbrowser then do the element id to input the username and password. The more efficient way of doing it is HttpWebRequest. Anyone know how I can log into this site using the HttpWebRequest method? The site has no Element ID's for the textboxes like I am used to. I want to retrieve my grades without going to and logging in the site every time. I will just store my username and password in the registry or a text file or something, but here is the site. All I need to know is how to log in, xbox.com is way easier :/

    https://adphila.grad...ront/slogin.php

    Also, here is the http version:

    http://adphila.grade...n.php?secure=no

    #2 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08

    Posted 20 October 2009 - 09:19 AM

    HttpWebRequest uses credentials, and is only good if it has a .htaccess login. I know you can use WebRequest, using the POST method to post data the website and get a response, but that's it. The webbrowser would be the easiest way.

    PS: Just by looking at the source, I can already tell it won't pass a validation check lol...


    Edit: They use a direct script to POST the data to. Ask peaches, or get someone to host a script that takes post data and post it to that page.

    Edited by Dark Slipstream, 20 October 2009 - 09:20 AM.