| Reply | « Previous Thread | Next Thread » |
|
I have been trying to figure out the proper header for the HTTP landmark object encapsulation, still have not been successful.
We can't match the proper RFC2616 headers to the code below. Anyone know the proper format. We were successful with email format encapsulation but HTTP is giving us hard time. Where can I find more information regarding proper headers? or best file sample. Thanks [other RFC2616 headers] … Content-Type: multipart/mixed; boundary="-- simple boundary" Content-Type: text/html; charset=us-ascii Content-Length: nnnn <html> ...some html page... |
| mmogilnicki |
| View Public Profile |
| Find all posts by mmogilnicki |
|
I do not understand your question. Could you please try again a second time?
Just guessing: Do you want to download a Nokia Landmarks file from a HTTP server? AddType application/vnd.nokia.landmarkcollection+xml .lmx worked for me in my Apache webserver.
Last edited by traud : 2008-02-08 at 14:51.
|
|
Yes, that is exactly what I am trying to do and I can't seem to find the right format for the file to be accepted by phone.
I added the Type, but I think my problem is in the header. If it worked for you can you share it? thanks |
| mmogilnicki |
| View Public Profile |
| Find all posts by mmogilnicki |
|
I have followed the exchange format, but I am a bit confused and I tried to save file on my server in may different formats .lmx.xml.hmtl, however I can't seem to get the right format of the file for the phone to accept it through the mobile browser as a Landmark. The best I accomplished is saving text to Notes.
Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/html; charset=us-ascii Content-Length: nnnn <html> ...some html page... </html> --boundary Content-Type: application/vnd.nokia.landmarkcollection+xml; charset=utf-8 Content-Length: nnnn <?xml version="1.0" encoding="UTF-8"?> <lm:lmx xmlns:lm="http://www.nokia.com/schemas/location/landmarks/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nokia.com/schemas/location/landmarks/1/0/ lmx.xsd"> <lm:landmarkCollection> <lm:landmark> <lm:name>The Cambridge Theatre Theatre</lm:name> <lm:coordinates> <lm:latitude>51.513807</lm:latitude> <lm:longitude>-0.126878</lm:longitude> </lm:coordinates> <lm:addressInfo> <lm:country>United Kingdom</lm:country> <lm:city>London</lm:city> <lm ostalCode>WC2H 9HU</lm ostalCode><lm:district></lm:district> <lm:street>Earlham Street</lm:street> </lm:addressInfo> </lm:landmark> </lm:landmarkCollection> </lm:lmx> --boundary-- |
| mmogilnicki |
| View Public Profile |
| Find all posts by mmogilnicki |
|
Why do you send it as multipart? Is that a requirement in your situation? I created a link in my (X)HTML page to the Nokia Landsmark file, clicked on that with the internal browser, and if I recall correctly (do not have the device at hand right now) I was able to download and import it this way. No further headers.
|
|
never mind, I got it already
addtype was the key. thanks
Last edited by mmogilnicki : 2008-02-09 at 19:05.
|
| mmogilnicki |
| View Public Profile |
| Find all posts by mmogilnicki |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| waiting for HTTP POST response | gemilib | General Symbian C++ | 3 | 2007-11-19 18:00 |
| Problem retreiving custom HTTP response header | hmeet2 | Symbian Networking & Messaging | 0 | 2007-01-03 10:35 |
| Receive uncomplete HTTP response | apitoman | Symbian Networking & Messaging | 6 | 2004-03-24 17:15 |
| nokia 7210 modem via IR doesn't work ! | oussamaaiadi | PC Suite API and PC Connectivity SDK | 1 | 2003-03-06 11:46 |
| HTTP Response contains a MMS sent via a wap gateway to the target client | alinesimon | General Messaging | 1 | 2002-07-22 08:57 |