groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gmail <jscottwal...@gmail.com>
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:
	http://localhost:8080/add/1001
	http://localhost:8080/getByID/1234

One that fails with “file not found”:
	http://localhost:8080/listAccountNumber/55554715BAS1

Scott Walton


Mime
View raw message