Ok, forget the content type guru's part. I now officially open this
thread up so anyone can respond...
Please...
~Brad
-Original Message-
From: Brad Wood [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 9:49 AM
To: CF-Talk
Subject: urlencoded content type
Ok, you content type
Why would anyone in a coldfusion list be able to / desire to help you
with a http content question?? You are in the wrong place buddy
Chris
-Original Message-
From: Brad Wood [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 1:13 PM
To: CF-Talk
Subject: RE: urlencoded content
basic principles before I bored anyone with
the details of my specific problem.
~Brad
-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 12:16 PM
To: CF-Talk
Subject: RE: urlencoded content type
Why would anyone in a coldfusion list be able
You could always try cf-community, or #coldfusion on Dalnet.
Chris
-Original Message-
From: Brad Wood [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 1:27 PM
To: CF-Talk
Subject: RE: urlencoded content type
Well, if it makes you feel any better, you were a last resort. I've
, 2008 1:05 PM
To: CF-Talk
Subject: RE: urlencoded content type
You could always try cf-community, or #coldfusion on Dalnet.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
]
Sent: Thursday, June 12, 2008 1:05 PM
To: CF-Talk
Subject: RE: urlencoded content type
You could always try cf-community, or #coldfusion on Dalnet.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
I guess I was just givin ya crap because the problem as stated had
nothing at all to do with coldfusion. Maybe you should just include the
entire problem? ;)
Chris
I thought about that,
ok, I looked at your sample http post. Total crap IMHO. But we must
eat crap at times.
Ignore the form scope. Since this is passed as a query string on the
URL use cgi.query_sting as your raw data and parse the real XML
portion into it's own string the use CF's xml functions to convert
-Talk
Subject: Re: urlencoded content type
ok, I looked at your sample http post. Total crap IMHO. But we must
eat crap at times.
Ignore the form scope. Since this is passed as a query string on the
URL use cgi.query_sting as your raw data and parse the real XML
portion into it's own string
I thought about that, and I have a theory that states the
likelyhood of getting a reply on the talk list decreases as
the length/complexity/details of your question grow.
Well, uh, yeah. This isn't a theory, it's a simple observation.
Here's the problem: The post sent by this program uses
Is the following (simplified) HTTP post valid?
Please note the content type is set to
application/x-www-form-urlencoded, yet the XML request
parameter is NOT url encoded.
No, it's not valid. Or, more accurately, it's not well-formed.
Furthermore it has an ampersand () which makes it
Well, uh, yeah. This isn't a theory, it's a simple observation.
Lol. You crack me up. That is why I started out with a simple
question to ease into the conversation.
What happens if you access the request body directly, using CF's
GetHttpRequestData function?
Hmmm, now we're talking. Let
No, it's not valid. Or, more accurately, it's not well-formed.
Ok, good so far.
That's not a problem, though, since the ampersand is properly escaped:
amp;
I disagree. The ampersand has been escaped properly for inclusion in an
XML document. The XML has NOT been url encoded. It SHOULD be:
I disagree. The ampersand has been escaped properly for
inclusion in an XML document. The XML has NOT been url
encoded.
OK, that's a fair cop.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our
Ok, I think I'm in business. The struct returned by
GetHttpRequestData() has a key called content which is equal to the
body of the HTTP request.
I had forgotten this little guy existed but it is exactly what I need.
Thanks, Dave.
Anyone want to guess what underlying Java method is used to get
Anyone want to guess what underlying Java method is used to
get that data?
In a JSP, you'd use request.getInputStream() if I recall correctly. Since
the Apache Jakarta fileupload library came out, though, I haven't had to
deal with that, so I could be wrong.
Dave Watts, CTO, Fig Leaf Software
16 matches
Mail list logo