How to use proxy in Net::HTTP, not in LWP::UserAgent?

G

Great Deals

I need some features that are in Net::HTTP but not in LWP::UserAgent.

I used proxy in LWP::UserAgent, and I think LWP::UserAgent is using
Net::HTTP, but I can not find how I can use proxy in Net::HTTP
directly...
 
G

gisle

I need some features that are in Net::HTTP but not in LWP::UserAgent.

Which feature is that?
I used proxy in LWP::UserAgent, and I think LWP::UserAgent is using
Net::HTTP, but I can not find how I can use proxy in Net::HTTP
directly...

Read the HTTP spec. Or monitor how some application (like LWP) does
it when it talks via a proxy. Basically all you have to do is provide
a full URL in the request line to the proxy server.
 

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

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top