1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

... Lol

Discussion in 'Code Snippets and Tutorials' started by Ryan, Sep 22, 2007.

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

    Ryan Level II

    Joined:
    Jan 23, 2007
    Messages:
    251
    Likes Received:
    1
    I had a feeling that the HttpClient wasn't handling cookies properly...
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Bad Request</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Your browser sent a request that this server could not understand.</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Size of a request header field exceeds server limit.</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Cookie: ld_chip_neon=2007-09-21%2C+np_randseed%3D65024157339008162%2C+xt6Yr4e33D%3D6586994373076814487169%2C+np_uniq%3D2007-09-21%2C+ld_%3D2007-09-21%2C+np_randseed%3D65024157339008162%2C+xt6Yr4e33D%3D6586994373076814487169%2C+np_uniq%3D2007</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Apache/1.3.33 Server at [url=http://www.neopets.com]http://www.neopets.com[/url] Port 80</li></ol></div>
    It appears that they just stack up every request...
    I guess I'm going to end up writing my own wrapper no matter which way I come at it.

    Btw that cookie is about 3000 characters long, I had to cut it off.
     
  2. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    You just have to replace the "+" signs with a ";" sign, and replace the HTML characters with the normal ones. To do this, just get the number after the percent sign % and convert the ASCII number to a character.
     
Thread Status:
Not open for further replies.