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

httpwebrequest javascript cookies?

Discussion in 'C, C++, C#' started by xpro, Oct 15, 2010.

  1. xpro

    xpro Regular Member

    Joined:
    Jan 21, 2009
    Messages:
    416
    Likes Received:
    16
    Hello

    I'm trying to make a bot with httpwebrequest that logs in to hotmail and I found out that hotmail sets some cookies using javascript that the CookieContainer object does not grab. What is the best way to deal with this? should I add the cookies manually to the CookieContainer object?

    Best Regards!
     
  2. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    yes, in these cases you can usually parse the values from the page manually and add them.

    if they're even required for the login.