Reputation: 145
Trying to get page with
http:www.thecinemas.aw/main/?date=2012-11-01
doesn't work anything. But
does work.
The only difference I can see is the use of a minus (-
) in the first one.
Any suggestions on how I can solve this?
Upvotes: 0
Views: 55
Reputation: 159784
The first URL should start with http://
, otherwise the protocol prefix is not valid.
Upvotes: 2
Reputation: 477
use:
URI uri = new URI("http", "www.thecinemas.aw", "/main/?date=2012-11-01",null);
URL url = uri.toURL();
Upvotes: 1