Login, authenticate, then download

Hi, experts,

I AM able to login in java, and I get back the session cookie from scribd, but I am NOT  able to then asking for the download using that cookie. Maybe tomorrow you can help me a little with that. I have tried to set all cookies which I see in  HttpFox.

Thank you

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you need to combine the two, ie. first login , then do the download from the same session.
let httpclient look after the cookies for you


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kerznerAuthor Commented:
you mean, keep using the same method object?
no, the same client
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

kerznerAuthor Commented:
but i AM using the same client. Maybe I should not set any more cookies?
Try setting the user-agent string to a real browser's one
kerznerAuthor Commented:
Still unresolved, but I want to thank everybody for help and assign points. I am sure you advice is correct, but something is wrong on my side.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.