groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gmail <>
Subject URL(value).text works depending on what the URL is
Date Tue, 06 Feb 2018 13:29:05 GMT
With some URL’s, it successfully retrieves from a RESTful service at that URL, but with others
it fails with “file not found” looking for a local file. If I pass the same URL to a Java
method and jump through all the hoops to open an http connection, it works correctly.

How do I tell Groovy that the URL is really a URL not for a local file? 

Some that are good:

One that fails with “file not found”:

Scott Walton

View raw message