No. Your argument to
IO::Socket::INET->new is not a URL. IO::Socket cannot parse URL's and does not know what to do with them. That's what
LWP is for. Since you're re-inventing the wheel by not using any common HTTP/LWP modules, you have to actually re-invent it. You need to set up a network connection to the web server at port 80, and send properly formatted HTTP requests to the server, and parse the HTTP responses that you get back from it. The argument to that 'new' call should be (in its simplest form; see
IO::Socket::INET for details) a "hostname:port" string only.