Authentication and POST with C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JennyV
    New Member
    • Jan 2009
    • 3

    Authentication and POST with C#

    Hello,

    I have been searching the internet about methods for a C# console program to login and post on a website.

    I have been advised to either make the program log in every time when is necessary or to somehow include the session cookies with which I am logged in with my browser.


    I am afraid though that some of the methods don't work with every website and specifically with those I need like this one:


    This is the login page that I have already got past with my browser but in order the program to authenticate I think it needs the cookies or to login itself


    And the string I need to be posted is a known password string of 6 characters in the field "userpwd" on for example this page https://shop.playrohan.com/Exchange/...?SaleSep=27704
    or any of the link accessed from this page https://shop.playrohan.com/Exchange/...Sale_List.html


    Can anyone who has experience in this please give me a hint of what works with such kind of sites and with this one particulary and suggest what functions I should use? And any guidance of the best method to proceed is much appreciated.

    Sincerely,
    Jenny
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Try using HttpWebRequest

    Comment

    Working...