You Are Here:

Community: Developer Discussion Boards

#1 Old Landmark HTTP response - 2008-02-07, 14:29

Join Date: Feb 2008
Posts: 4
mmogilnicki
Offline
Registered User
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...
Reply With Quote

#2 Old 2008-02-08, 14:45

Join Date: Mar 2003
Posts: 2,617
traud
Offline
Super Contributor
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.
Reply With Quote

#3 Old Re: Landmark HTTP response - 2008-02-08, 15:23

Join Date: Feb 2008
Posts: 4
mmogilnicki
Offline
Registered User
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
Reply With Quote

#4 Old Re: Landmark HTTP response - 2008-02-08, 16:28

Join Date: Feb 2008
Posts: 4
mmogilnicki
Offline
Registered User
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>
<lmostalCode>WC2H 9HU</lmostalCode>
<lm:district></lm:district>
<lm:street>Earlham Street</lm:street>
</lm:addressInfo>
</lm:landmark>
</lm:landmarkCollection>
</lm:lmx>

--boundary--
Reply With Quote

#5 Old 2008-02-08, 19:32

Join Date: Mar 2003
Posts: 2,617
traud
Offline
Super Contributor
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.
Reply With Quote

#6 Old Re: Landmark HTTP response - 2008-02-09, 05:08

Join Date: Feb 2008
Posts: 4
mmogilnicki
Offline
Registered User
never mind, I got it already addtype was the key. thanks
Last edited by mmogilnicki : 2008-02-09 at 19:05.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d162470X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZlocationQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxlocationE2dbasedE2dservicesX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ