B
buildmorelines
What is the best/normal/typical way of validating or sanity checking a
URL that a user gave that will become the proxy address that will get
passed to LWP, I would prefer modules if possible? If it isnt
acceptable to let LWP error with "501 Protocol scheme '' is not
supported".
Also are there any modules that will turn something like "localhost"
into "http://localhost/" because LWP says "501 Protocol scheme '' is
not supported" if I just give it "localhost". Also do I need to worry
about https addresses?
Would all of I want to do work by making a regular expression such as
m/http(|s):\/\/.+/i (invented myself)?
URL that a user gave that will become the proxy address that will get
passed to LWP, I would prefer modules if possible? If it isnt
acceptable to let LWP error with "501 Protocol scheme '' is not
supported".
Also are there any modules that will turn something like "localhost"
into "http://localhost/" because LWP says "501 Protocol scheme '' is
not supported" if I just give it "localhost". Also do I need to worry
about https addresses?
Would all of I want to do work by making a regular expression such as
m/http(|s):\/\/.+/i (invented myself)?