3

What's wrong with my URL :

http://emapzoom.com/gpslocation/upload_location?status=1&lat=0.422005&lng=-122.084095&alt=0&mph=0.0&dir=0.0&dis=1.359023E7&lm=GPS&sid=4500352380545078953&acc=0.0&tm=1311847202000&tm2=28 Jul 2011 10:00:02 GMT&did=10169

i got in my log cat

07-29 10:11:16.995: VERBOSE/Exception doing background(334): Exception:Illegal character in query at index 185: http://emapzoom.com/gpslocation/upload_location?status=1&lat=0.422005&lng=-122.084095&alt=0&mph=0.0&dir=0.0&dis=1.359023E7&lm=GPS&sid=4500352380545078953&acc=0.0&tm=1311847202000&tm2=28 Jul 2011 10:00:02 GMT&did=10169

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
sayvortana
  • 825
  • 2
  • 16
  • 32

2 Answers2

5

How about changing the spaces to %20

bezz
  • 1,438
  • 18
  • 28
  • Change every space in that url to %20 http://emapzoom.com/gpslocation/upload_location?status=1&lat=0.422005&lng=-122.084095&alt=0&mph=0.0&dir=0.0&dis=1.359023E7&lm=GPS&sid=4500352380545078953&acc=0.0&tm=1311847202000&tm2=28%20Jul%202011%2010:00:02%20GMT&did=10169 – bezz Jul 29 '11 at 04:32
2

Spaces to %20 are good idea.

If there is more problematic characters:

  • Copy link to web browser and enter to it.
  • Compare link before and after website download.
  • Some malformed characters should be fixed to right form.

If it will fail also, please read this thread: How to deal with the URISyntaxException.

Community
  • 1
  • 1
Waldemar Wosiński
  • 1,490
  • 17
  • 28