URL Parameter

An iPhone client for Growl available on the App Store.
Mucher
Harmless
Posts: 4
Joined: Sat Dec 21, 2013 5:00 pm

URL Parameter

Postby Mucher » Sat Dec 21, 2013 5:09 pm

Hi,
i have a problem using the url-parameter in the API.
I want to send an german address (via googlemaps) to my device. For that I am using the url parameter. Unfortunally everytime I send an address (e.g. "maps.google.de/?q=Turmstraße 1, Köln") i get an error and Prowl says that the url is NULL. I already recognized that the url only becomes NULL if there is a letter like Ü,Ö,Ä,ß or a Space. I have tried things like UTF8Encoding but that doesnt work either.

Is there anyone who can help?

User avatar
zac
Cocoaforge Admin
Posts: 1518
Joined: Sun Mar 27, 2005 3:19 pm
Contact:

Re: URL Parameter

Postby zac » Sat Dec 21, 2013 11:03 pm

I believe you'll need to url encode the attributes in your URL string which are causing the problem, e.g. this URL works: http://maps.google.de/?q=Turmstra%C3%9F ... 0K%C3%B6ln

I am weary about 'fixing' this problem because people typically pipe URLs directly into Prowl, and many are already encoded before being passed in. Double-encoding them would cause problems.

Mucher
Harmless
Posts: 4
Joined: Sat Dec 21, 2013 5:00 pm

Re: URL Parameter

Postby Mucher » Tue Dec 24, 2013 2:10 pm

Thanks for your answer.
I tried as you told me and replaced every ä,ö,ü,ß by the appropriate UTF8-code, but that does not work neither.
Then I tested the url you posted in your answer and even that won't work. I get the error "NULL".

This is a very important thing for me as i am using prowl for several dispatcher tasks.

I found another way by replacing ä by ae, ö by oe etc., however there are some interpretation errors at googles.

Do you have any idea?


PS: Merry Christmas at all!

Mucher
Harmless
Posts: 4
Joined: Sat Dec 21, 2013 5:00 pm

Re: URL Parameter

Postby Mucher » Tue May 20, 2014 8:15 pm

Hi.
Are there any news on this topic?
I still have these problem and it is really annoying, concerning the interpretation errors of google's.
Are there meanwhile any other tips?

User avatar
zac
Cocoaforge Admin
Posts: 1518
Joined: Sun Mar 27, 2005 3:19 pm
Contact:

Re: URL Parameter

Postby zac » Wed May 21, 2014 2:19 am

Can you share some example URLs which are failing? Feel free to email me (prowl-support@googlegroups.com) if they are sensitive.

Mucher
Harmless
Posts: 4
Joined: Sat Dec 21, 2013 5:00 pm

Re: URL Parameter

Postby Mucher » Wed May 21, 2014 7:33 am

I have my "basic" URL: "http://maps.google.com/?q="

Now I add the address I want to attach, e.g "Turmstraße 1, Köln", so the entire URL is "http://maps.google.com/?q=Turmstraße 1, Köln". With that URL Prowl says it is NULL.
I also tried manuell UTF-8-Encoding and used an URL like: "http://maps.google.com/?q=Turmstra%DFe%201%2C%20K%F6ln" but it's the same problem here.
I suppose that in this case Prowl decodes the string, gets chars like ß and ö and sets the URL to NULL.

When I tried to write the URL like "http://maps.google.com/?q=Turmstrasse1,Koeln", Prowl accepts that URL, but now Google Maps has some problems finding the right adress, especially the house number. (Not in this address, but there are others)


Return to “Prowl”

Who is online

Users browsing this forum: Bing [Bot]