java - How to use HttpClient with multithreaded operation? -


I have to do an application that requests a login post in a fixed host, then navigate to some pages, Finds and Recovers Some Figures Website Resource is protected from the session, so before doing some operations like receiving or posting some data, I have to first log in to the website. My question is is that the HTTP client is not thread-safe, how can I create only one HTTP client instance, but thread can do it safely? Remember that the underlying connection can be used first to operate.

Here is an answer:

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -