> So what's the deal? Is macromedia going to issue a patch 
> to fix the urlencoding problem? 

I have no idea. In my opinion, CFHTTP has been next to useless for quite
some time - it has many, many flaws. Oddly enough, MM solicited the opinions
of a bunch of CF developers (myself included) about what we'd like CFHTTP to
be able to do. Then, apparently, they disregarded all that stuff. Given MM's
track record with CFHTTP, I wouldn't expect anything to change very soon
with it.

Fortunately, it doesn't matter all that much, as there are many alternatives
that you can use to accomplish the same thing. In CF MX, I've been testing
the Jakarta io JSP tag library, which seems to do most of the things I want
to be able to do with an HTTP client:
http://jakarta.apache.org/taglibs/

> It should be automatic. POST doesn't encode, GET does.

Well, it's not that simple. First of all, you should be able to send HTTP
headers whether you're sending a GET or POST request, but CFHTTP doesn't let
you do that - you can only use the CFHTTPPARAM tag when you're POSTing. This
limitation prevents you from using CFHTTP with many cookie-enabled sites, as
they won't necessarily accept anything other than GET requests for many
pages.

Second, headers shouldn't ever be encoded, whether you're doing a POST or a
GET. This is simply a bug.

Finally, you should be able to POST raw data, instead of just name-value
pairs. I think that this has been addressed to some degree in CF MX, but the
other problems would still make the tag unusable for quite a few things.
Since CF MX lets you invoke SOAP services over HTTP directly with the
CFINVOKE tag and CreateObject function, this is less of an issue for me,
now, but it does prevent you from sending raw data to other interfaces, such
as XML-RPC servers.

When I say "finally" above, I don't mean to say that there aren't any other
problems with CFHTTP, just that I'm not going to bother enumerating any
more. Not having full control over headers is kind of a deal-breaker right
there.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to