Ben,

What type of data is the applet posting? Can you tell why it is posting it
using the application/octet-stream content type? This content type is more
commonly used to transport files.

Chris
------------------------------------------------------------------
Chris Lomvardias
[EMAIL PROTECTED]
Syscom, Inc.
400 E. Pratt Street, Suite 300
Baltimore, MD 21202
(410)539-3737 x1722 voice
(410)539-7302 fax
[EMAIL PROTECTED] (pager via email)
http://www.syscom.com/
------------------------------------------------------------------

-----Original Message-----
From: Ben Koshy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 12:35 PM
To: CF-Talk
Subject: Processing an HTTP Post (not form)


I have a java applet that posting some data to my cold fusion template.  But
I can't seem to access the data.  It doesn't appear to be showing up in a
FORM post, more of a raw-socket post as far as I can tell from the
documentation. When I output the CGI structure seen by the webserver via the
Cold Fusion Template, I get the list attached at the bottom.

As you can see, 46K of some data is being detected but I don't know how to
access this data.  I also notice the request method is now set to POST
instead of GET.  Even though I loop from the form structure and the variable
fieldnames it doesn't see any named variables.  The java applet also has the
ability to transmit a header before the post, is there a way I can fake a
form header so this data does show up as a form field?

HTTP_CONTENT_LENGTH - 46840
HTTP_CONTENT_TYPE - application/octet-stream

These CGI variables show the 46K of data coming through...

Any ideas?

INSTRUCTIONS ON THE POST FORMAT:
==================================
this is the format of POST Data

P(1Byte Character)
Length of The header for CGI author(8byte Characters)
The header for CGI author
Length of Image(8byte Characters)
\r\n(CR LF)
Image data(format is PNG or JPEG)
Length of thumbnail(8byte Characters)
thumbnail(format is PING or JPEG or AnimationData)
Length of thumbnail2(8byte Characters)
thumbnail(format is PING or JPEG or AnimationData )

Length is not transmitted, either, when there is not thumbnail.

format of poo=true
0x00000000
\r\n(CR LF)
Image data(format is PNG or JPEG)
Lnegth of thumbnaill(8byte characters)
thumbnail(format is PING or JPEG or AnimationData)


MY CGI ENVIRONMENT RECEIVED AFTER THE POST:
==========================================
CF_TEMPLATE_PATH - d:\index.cfm
CONTENT_LENGTH - 46840
CONTENT_TYPE - application/octet-stream
GATEWAY_INTERFACE - CGI/1.1
HTTP_ACCEPT_LANGUAGE - en
HTTP_CONNECTION - close
HTTP_CONTENT_LENGTH - 46840
HTTP_CONTENT_TYPE - application/octet-stream
HTTP_HOST - 127.0.0.1
HTTP_REFERER - http://127.0.0.1/
HTTP_USER_AGENT - PaintBBS/2.x (Windows NT;5.0)
HTTPS - off
HTTPS_KEYSIZE -
HTTPS_SECRETKEYSIZE -
HTTPS_SERVER_ISSUER -
HTTPS_SERVER_SUBJECT -
QUERY_STRING - fuseaction=test
REMOTE_USER -
REQUEST_METHOD - POST
SERVER_NAME - 127.0.0.1
SERVER_PORT - 80
SERVER_PORT_SECURE - 0
SERVER_PROTOCOL - HTTP/1.0
SERVER_SOFTWARE - Microsoft-IIS/5.0
WEB_SERVER_API - ISAPI



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to