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

  • SEARCH
  • Home
  • 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 8337233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:14:38+00:00 2026-06-09T04:14:38+00:00

I developed an application for posting however it does not work with multithreading some

  • 0

I developed an application for posting however it does not work with multithreading some issue in the posting method for libcurl which i cannot resolve.So i want to use HTTPWEBREQUEST instead .

I have the cookies saved in txt files with accounts username, how can i use them in HTTPWEBREQUEST

In simple my question is how to retrieve cookies from txt files saved by libcurl into cookie container so i can use it with HTTPWEBREQUEST

The txt files are like:

# Netscape HTTP Cookie File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.

www.example.com FALSE   /   FALSE   10  _lipt   deleteMe
.example.com    TRUE    /   FALSE   1407285025  bcookie "v=2&20ed7c4b-de0d-4a49-9e89-b2260988e566"
www.example.com FALSE   /   FALSE   1351985424  leo_auth_token  "LIM:187682881:a:1344209425:6b1292e2a3dfd0f7f40d4fc7bb196457ca9f3e04"
www.example.com FALSE   /   FALSE   10  sl  "delete me"
www.example.com FALSE   /   TRUE    0   s_leo_auth_token    "LIM:187682881:s:1344209425:eb957b29be2d103d418a49888733167af66c37cd"
www.example.com FALSE   /   FALSE   0   JSESSIONID  "ajax:00000000000000"
www.example.com FALSE   /   FALSE   1407285025  visit   "v=1&M"
www.example.com FALSE   /   FALSE   10  li_a    "delete me"
www.example.com FALSE   /   FALSE   10  mst "delete me"
www.example.com FALSE   /   FALSE   10  li_at   "delete me"
.example.com    TRUE    /   FALSE   0   lang    "v=2&lang=en-us"
www.example.com FALSE   /uas/   FALSE   0   X-LI-IDC    C1
www.example.com FALSE   /   FALSE   0   X-LI-IDC    C1

UPDATE

DOES the webbrowser also have cookies int he same way which we can retrive using:

                string[] array = webBrowser1.Document.Cookie.Split(new char[]
                        {
                            ';'
                        });
                for (int i = 0; i < array.Length; i++)
                {
                    string cookie = array[i];
                    string name = cookie.Split(new char[]
                            {
                                '='
                            })[0];
                    string value = cookie.Substring(name.Length + 1);
                    string path = "/";
                    string domain = "turn14.com";
                    yummycookies.Add(new Cookie(name.Trim(), value.Trim(), path, domain));
                }

Any help highly appreciated!

  • 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-06-09T04:14:39+00:00Added an answer on June 9, 2026 at 4:14 am

    You need to create a CookieContainer, which stores cookied for HttpWebRequest.

    You can parse the cookies from the file and add them to the CookieContainer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed an application in the phonegap which is working good in the android
I have developed application for drawing some shapes (lines mostly) , now i need
I have a well-developed application for a phone, but I would like to add
i have developed application for read information from card reader. Here i have used
can I change layout dpi that use my application on device? (on developed application
We developed a application in VS2008 in 64-bit machine.We need to host into 32
I developed an application that gives logged in users an overview of statistics per
I developed an application in android. Its input fields are working fine e.g. username
I developed an application with different MVCs using the Yii Framework For example I
We developed an application to edit the web.config settings. The user has to locate

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.