URL(value).text works depending on what the URL is

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

URL(value).text works depending on what the URL is

Gmail
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