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

C#: Need help with this weird httpwebrequest

Discussion in 'C, C++, C#' started by kytro360, Sep 11, 2011.

  1. kytro360

    kytro360 Power Member

    Joined:
    Jan 12, 2010
    Messages:
    703
    Likes Received:
    732
    Hi I am trying to httpwebrequest in Twitter. Basically I want to edit an accounts bio, location, and website. Im using Live Http Headers and this is the request I got:

    Code:
    Cookie: tz_offset_sec=-14400; guest_id=v1%3A131370156469348841; __utma=43838368.1545631773.1314323700.1315773783.1315776689.20; __utmz=43838368.1315776689.20.20.utmcsr=news.yahoo.com|utmccn=(referral)|utmcmd=referral|utmcct=/an-unlikely-friendship.html; js=1; twll=l%3D1315053012; __utmv=43838368.lang%3A%20en; __qca=P0-1685738712-1315094979865; original_referer=ZLhHHTiegr8AkipXP2tWxX5GffIExF2AGSyCXKKX3cit%2BF3kjwF8qCFgOYl%2Fh8foW8C0Ht2IYWkbOFRaZ5cdo633pB1DqJ7ZMVehTM6tzpSQhAyE7CYW3JdTVsIajRGF1E4RqVXMoScCBLugf2QL1Po4ogP5tiFY%2Fa4cPV5nQoFL5VxshtsXTQ%3D%3D; auth_token=6ca8e0d37df23435681749e8e4ff4e53f596c52e; twid=u%3D367123824%7CxdgHqGAWrG3CRqUr%2Fh0dCp0HygU%3D; lang=en; _twitter_sess=BAh7EjoMY3NyZl9pZCIlZjU2N2MzNjlhZGMwZjA0MjNlM2Y3ZjEwZTkzODJh%250AMWQ6DnJldHVybl90byIoaHR0cDovL3R3aXR0ZXIuY29tL3NldHRpbmdzL3By%250Ab2ZpbGU6EWZpcnN0X2ludml0ZTA6DHR6X25hbWUiG0F0bGFudGljIFRpbWUg%250AKENhbmFkYSk6D2NyZWF0ZWRfYXRsKwg3HlodMgE6IHNvbHZlZF9jYXB0Y2hh%250AX3N1Y2Nlc3NmdWxseTA6GGluX2VtYWlsX3ZhbGlkYXRpb25UOhVpbl9uZXdf%250AdXNlcl9mbG93MDoHdWEiSE1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDUuMTsg%250AcnY6Ni4wLjEpIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvNi4wLjE6B2lkIiU3%250AMzMyMGUwMjA2OTBmZDlkZTUyNGY0NjQxZGY4ZWM2MCIKZmxhc2hJQzonQWN0%250AaW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoT%250AcGFzc3dvcmRfdG9rZW4iLTZjYThlMGQzN2RmMjM0MzU2ODE3NDllOGU0ZmY0%250AZTUzZjU5NmM1MmU6CXVzZXJpBHDd4RU%253D--b732909d0f5eb1510030261795feec3fec04a900; __utmc=43838368; k=76.110.3.194.1315773652478950; session_buffer=%5B%5D; __utmb=43838368.3.10.1315776689
    
    Im confused because in other requests Ive done it actually passes the text values but this one only passes numbers and letter not phrases.

    Can you help?
     
  2. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    Hope there's nothing good on that account, cause anyone can get on that puppy right now.
     
  3. thinkdevoid

    thinkdevoid Regular Member

    Joined:
    Aug 30, 2011
    Messages:
    446
    Likes Received:
    131
    Location:
    192.168.1.1
    ^^ What Crazy Said.
     
  4. kytro360

    kytro360 Power Member

    Joined:
    Jan 12, 2010
    Messages:
    703
    Likes Received:
    732
    Nah, Im making an account creator and thats one of the accounts I made. Do you know a solution?
     
  5. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    kytro, that's definitely not the complete HTTP request. That's only the Cookie header.
     
  6. ShiftySituation

    ShiftySituation Power Member

    Joined:
    Apr 15, 2010
    Messages:
    621
    Likes Received:
    314
    Occupation:
    Having fun
    Location:
    Jacksonville, FL
    Why recreate the cookie in a header when you can just save the response.cookie from your previous request in a cookie container and then apply that cookie container to your new request?
     
  7. kytro360

    kytro360 Power Member

    Joined:
    Jan 12, 2010
    Messages:
    703
    Likes Received:
    732
    Huh can you rexplain what you said?
     
  8. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
  9. something77

    something77 Registered Member

    Joined:
    Jan 6, 2010
    Messages:
    73
    Likes Received:
    10
    I recommend you buy or find a copy of "HTTP Programming Recipes for C# bots"
     
  10. xenon2010

    xenon2010 Regular Member

    Joined:
    Apr 27, 2010
    Messages:
    231
    Likes Received:
    48
    Occupation:
    web and desktop apps programmer
    Location:
    prison
    Home Page:
    you don't need to get into that...
    you can perform that from twitter API i suppose...