Thread: Using Wininet functions to sign in on Yahoo

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    I'd recommend moving the post data (the really long string) into, at least, a char *, and get the size of it by calling strlen() or the equivalent of whatever type you put it in. That'll reduce errors, let you change it in the future, and allow you to generate it dynamically if need be.

    Also, you see to have things like &pkg=%22%22 - for clarification, if the HTML code has:
    Code:
    <input type="hidden" name="pkg" value="">
    , then it has no value. The quotes merely surround the value, so the respective post data would be &pkg=&name_of_next_variable... the quotes could be throwing Y! off.

    One of the variables is named "challenge". You might want to check if this perhaps changes, or if there are any cookies that perhaps the initial login page is sending. The value may also be randomized so that you have to get the initial login page, parse through it, and send the values that Y! sends you.

    As for the connection reset, I believe it just means that the connection was closed. It's nonetheless odd - I would've expected at least a HTTP response that had an error enclosed.

    Best of luck.

    EDIT: Scratch what I said about stepid - I was logged in.
    Last edited by Cactus_Hugger; 08-09-2006 at 07:29 PM.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Passing pointers between functions
    By heygirls_uk in forum C Programming
    Replies: 5
    Last Post: 01-09-2004, 06:58 PM
  2. Sign Up!: The Third Round, both contests
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 54
    Last Post: 07-20-2002, 05:46 PM
  3. Embedded functions...
    By dead_cell in forum C++ Programming
    Replies: 3
    Last Post: 06-30-2002, 08:18 PM
  4. API "Clean Up" Functions & delete Pointers :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-10-2002, 06:53 PM
  5. Variables do not equal functions!!!
    By me@burk. in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 06:24 AM