Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: URL resolve (operations on path etc.)

by Your Mother (Archbishop)
on Jul 31, 2022 at 17:27 UTC ( #11145867=note: print w/replies, xml ) Need Help??


in reply to URL resolve (operations on path etc.)

haukex already solved it but this is the way I generally handle these. It lends itself to bulk changes; URI.

~>perl -MURI -E '$x = "http://a.com/a/b/c/d/e.json?x=1&y=2"; $y = "../ +../../"; say URI->new_abs($y,$x);' http://a.com/a/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2022-12-08 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?