Ali Awan wrote:
> I am having an issue with a client, who is posting an XML file to me.
> 
> They post an XML file (I don't know how, through java somehow)
> 
> And I have a CF file that parses the gethttprequestdata().
> 
> Then it does some stuff, and writes some files and calls a storedproc.
> 
> That part isn't important.  The main thing is that my cf file does not
> produce any output for the browser.
> 
> However, whatever method my client is using to post the XML data, they are
> getting an http response back from our server.

They will always get a HTTP response back, there is no way around 
that because that is how HTTP is defined:

<quote>
6 Response

    After receiving and interpreting a request message, a server 
responds
    with an HTTP response message.

        Response      = Status-Line               ; Section 6.1
                        *(( general-header        ; Section 4.5
                         | response-header        ; Section 6.2
                         | entity-header ) CRLF)  ; Section 7.1
                        CRLF
                        [ message-body ]          ; Section 7.2
</quote> http://www.ietf.org/rfc/rfc2616.txt

The best thing to do is using cfheader to send a HTTP 204 "No 
Content" status code back:
<cfcontent reset="yes"><cfheader statuscode="204"><cfabort>

If they really don't want a response, HTTP is the wrong protocol 
and maybe they should be using SOAP over BEEP or something.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239184
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to