Net::HTTP with Cookies

S

Sam Kong

Hello!

I'm writing a program that downloads a web page.
The problem is that the page is dynamic depending on whether I visited
a specific page previously.

Let's say that I visit "www.example.com/mypage.asp?var=123".
It's non-English.
But if I visit "www.example.com/start_us.asp" and visit the above page,
it's English.
I believe that they are using cookie to seperate the language.

I want it to be English.
How can I use Net::HTTP for such a case?
I tried visiting "www.example.com/start_us.asp" and
"www.example.com/mypage.asp?var=123" with Net::HTTP but it didn't work
like Internet Explorer did.

TIA.
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top