Get URL (URI) Process


I’m looking for Class or Method that will pass back a document when
given a
I looked into the URI:: Class, but couldn’t find any examples of it’s

For example, if I had the URL:
… sent the request via GET or POST, and it gave me back an XML

Something like the following would be great:
@doc = SOMECLASS::get(URL, POST)

Any references would be greatly appreciated.
Thanks !