Hi there, I hope someone can help me with this problem, which I can't get around and I am kind of stuck, programing is not my forte I have to say!. I have a GPS tracking device that sends SMSs with location to kannel and I am trying to use post-url method to post data received (in sms text) to my tracking application. My problem is that kannel urlencode data before posting it, which is just garbage for my app to understand and parse,please see below
2008-09-22 18:55:20 [9764] [4] INFO: Starting to service <35702300; $GPGGA,000243.000,0000.0000,N,00000.0000,E,0,00,0.0,0.0,M,0.0,M,0.0,0001 35702300;$GPRMC,000243.000,V,0000.0000,N,00000.0000,E,,,060180,, > from <+447790017208> to <1234> 2008-09-22 18:55:20 [9764] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps to pid 9764. 2008-09-22 18:55:20 [9764] [4] DEBUG: Started thread 8 (gwlib/fdset.c:poller) 2008-09-22 18:55:20 [9764] [4] DEBUG: Started thread 9 (gwlib/http.c:write_request_thread) 2008-09-22 18:55:20 [9764] [9] DEBUG: Thread 9 (gwlib/http.c:write_request_thread) maps to pid 9764. 2008-09-22 18:55:20 [9764] [9] DEBUG: Parsing URL `http://www.server.com/gprmc/Data?35702300%3B%24GPGGA%2C000243.000% 2C0000.0000%2CN%2C00000.0000%2CE%2C0%2C00%2C0.0%2C0.0%2CM%2C0.0%2CM% 2C0.0%2C0001+35702300%3B%24GPRMC%2C000243.000%2CV%2C0000.0000%2CN% 2C00000.0000%2CE%2C%2C%2C060180%2C%2C': 2008-09-22 18:55:20 [9764] [9] DEBUG: Scheme: http:// 2008-09-22 18:55:20 [9764] [9] DEBUG: Host: www.server.com 2008-09-22 18:55:20 [9764] [9] DEBUG: Port: 80 2008-09-22 18:55:20 [9764] [9] DEBUG: Username: (null) 2008-09-22 18:55:20 [9764] [9] DEBUG: Password: (null) 2008-09-22 18:55:20 [9764] [9] DEBUG: Path: /gprmc/Data 2008-09-22 18:55:20 [9764] [9] DEBUG: Query: 35702300%3B%24GPGGA% 2C000243.000%2C0000.0000%2CN%2C00000.0000%2CE%2C0%2C00%2C0.0%2C0.0%2CM% 2C0.0%2CM%2C0.0%2C0001+35702300%3B%24GPRMC%2C000243.000%2CV%2C0000.0000% 2CN%2C00000.0000%2CE%2C%2C%2C060180%2C%2C 2008-09-22 18:55:20 [9764] [9] DEBUG: Fragment: (null) How would go about solving this? I know I need to urldecode it, but how?. If I use a script, how would I call it in the post-url? Any help is much appreciated Thank you, Nad
