Barney,
        Thanks for your help.

John

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 11:40 AM
To: CF-Talk
Subject: Re: Standard Method of receiving XML


You can't capture the CFHTTP requests unless your sniffer is running
on your server, because they never actually leave the server.  As for
getting your XML out of the header, Just do a search for the first <
and first =, take the lower non-zero one, and start reading from
there.

cheers,
barneyb


On Wed, 23 Mar 2005 11:00:31 -0500, John Stanley
<[EMAIL PROTECTED]> wrote:
> All,
>         I'm writing an XML interface that receives data from outside
users.
> In my code, I am using  GetHttpRequestData to get to the Content header.
> 
> Now in my testing, I am using CFHTTP to post the requested page and
> everything is perfect. I can parse and utilize the content header just
> peachy.
> 
> But I am realizing that the actual users of this interface will be using a
> variety of means to get the xml to my system, so that the content header
may
> appear quite different from connection to connection.
> 
> So for cfhttp my header appears as: <Transmission> </Transmission>
> if I use a form posting with a hidden element named xml, it is: xml=
> <Transmission> </Transmission>
> 
> I am sure that there are other methods of sending xml that will yeild
still
> different results.
> 
> Is there a way to pull only the XML from the content header regardless of
> what other information is in there? Or is this a case of us directing the
> users on how they should format their requests.
> 
> Also, I am using the Charles HTTP Proxy to watch the headers real-time. I
> notice that when I call a page, and that page uses cfhttp to request
another
> page, that request doesnt appear in the Charles log, although it does
appear
> if I change the code to use a auto-submitting form to the same page. In
what
> way can I view the CFHTTP requests then? I have tried also using
> LiveHttpHeaders on firefox with similar results. All of the pages being
> called are on the localhost.

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199783
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to