Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 971821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:01:28+00:00 2026-05-16T03:01:28+00:00

I have tried so many ways but failed to logged in purevolume.com programmatically! login

  • 0

I have tried so many ways but failed to logged in purevolume.com programmatically!

login URL: http://www.purevolume.com/login

can anybody give it a try and provide sample code to achieve this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:01:29+00:00Added an answer on May 16, 2026 at 3:01 am

    Something like this should work… You need to do an http post request and send your username and password. To remain “logged in” you need a cookie container that you then reuse for all other requests.

    Edit: Updated code that is tested. An initial GET request to /login was needed to have the session cookie before doing the POST login. I’ve also added some HTTP headers to make it identical to a “normal” request from a browser.

    void Main()
    {
        //We need a container to store the cookies in.
        CookieContainer cookies = new CookieContainer();
    
        //Request login page to get a session cookie
        GETHtml("http://www.purevolume.com/login", cookies);
    
        //Now we can do login
        Login("some-user-name", "some-password", cookies);
    }
    
    public bool Login(string Username, string Password, CookieContainer cookies)
    {
        string poststring = string.Format("username={0}&password={1}&user_login_button.x=63&user_login_button.y=13&user_login_button=login",
                                    Username, Password);
        byte[] postdata = Encoding.UTF8.GetBytes(poststring);
    
        HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("http://www.purevolume.com/login");
        webRequest.CookieContainer = cookies;
        webRequest.Method = "POST";
        webRequest.Referer = "http://www.purevolume.com/login";
        webRequest.Headers.Add("origin", "http://www.purevolume.com");
        webRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022;";
        webRequest.ContentType = "application/x-www-form-urlencoded";
        webRequest.ContentLength = postdata.Length;
        using (Stream writer = webRequest.GetRequestStream())
            writer.Write(postdata, 0, postdata.Length);
    
        using (HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse())
        {
            //We need to add any response cookies to our cookie container
            cookies.Add(webResponse.Cookies);
    
            //Only for debug
            using (var stream = new StreamReader(webResponse.GetResponseStream()))
                System.Diagnostics.Debug.WriteLine(stream.ReadToEnd());
    
            return (webResponse.StatusCode == HttpStatusCode.OK);
        }
    }
    
    public string GETHtml(string url, CookieContainer cookies)
    {
        HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
        webRequest.CookieContainer = cookies;
        webRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022;";
        webRequest.Referer = "http://www.purevolume.com/login";
    
        using (HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse())
        {       
            //We need to add any response cookies to our cookie container           
            cookies.Add(webResponse.Cookies);
    
            using (var stream = new StreamReader(webResponse.GetResponseStream()))
                return stream.ReadToEnd();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.