Question on images returned by Mapserver

Ed McNierney ed at TOPOZONE.COM
Wed Sep 29 11:12:21 EDT 2004


Andy -

HTTP headers are simply text lines, ending with a newline (\n).  Two newlines in a row (\n\n) indicates the end of the headers and the start of the content.  There should be nothing after the image content.  However, you may get a response with a "continue" header, followed by the content (or more content).

This isn't very complicated, but you should step carefully.  I strongly recommend that you get an HTTP "sniffer" package - I use HTTPLook on Windows (see http://www.httpsniffer.com) - it's simple, comes with a 15-day free trial, and costs USD$29.95 for a single license.  A few sessions with a sniffer should tell you everything you need to know.

        - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: +1 978 251-4242   Fax: +1 978 251-1396

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD
Sent: Wednesday, September 29, 2004 10:54 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Question on images returned by Mapserver

To anyone who may know,
    Here is my situation currently. I am working on a wirless solution that uses Mapserver. I can make the http request to the Mapserver CGI to return a map as an image to me. Since it is not going to a browser I need to extract only the image from the returned stream. I imagine it has an http header in the stream of some sort. So my question is how many bytes into the stream does the actual image start? Also is there anything tailing the image like a return character or does it end with end of the image?
Thank you,
Andy Canfield

_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



More information about the mapserver-users mailing list