Problem getting cookies from neopets

Discussion in 'Code Snippets and Tutorials' started by Ryan, Jun 25, 2007.

Thread Status:
Not open for further replies.
  1. Ryan

    Ryan Level II

    Joined:
    Jan 23, 2007
    Messages:
    251
    Likes Received:
    1
    I'm trying to write a Java http wrapper, but neopets is being really difficult with the cookies. Here are the requests that I send and the cookies that are returned:

    http://www.neopets.com
    nupi = 0
    nupid = 0
    npid = 0
    np_randseed = 40917356888352339
    np_uniq = pending
    xt6Yr4e33D = 3929947477406814487169
    ===================
    http://www.neopets.com/hi.phtml
    nupi = 0
    nupid = 0
    npid = 0
    np_uniq = 2007-06-24
    npuid = c00000000000e0000000700r0060000000000000000000000000000003000000
    ld_ = deleted
    np_uniq_ = 2007-06-24
    ===================
    http://www.neopets.com/hi.phtml?destination=/petcentral.phtml&username=xxxxxxx
    nupi = 0
    nupid = 0
    npid = 0
    ===================
    http://www.neopets.com/login.phtml?destination=/petcentral.phtml&username=xxxxxxxx&password=xxxxxxxx
    nupi = 0
    nupid = 0
    npid = 0


    None of the last three match up with what I get from a browser. Any idea what I am doing wrong? I have not forged the header files (aside from returning cookies), but I don't think thats the problem.
     
Thread Status:
Not open for further replies.