Basically it's a combo IIS 7 / ColdFusion 8 bug/issue.
IIS seems to be more the culprit here, which sucks for me.

Basically I have configured 404 errors in IIS 7 on Vista Business 64 bit to
hand the request over to a ColdFusion template, say "/index.cfm".

It does that perfectly, except for when the request is a POST.

Out of the box, the request still gets handed over but none of the POST data
is available in any form, just the query string which looks like this:

404;http://domain.com:80/fakeURL/thatYouPostedTo/

There is an IIS hotfix explicitly to address this issue, though it doesn't
solve it.

Post-hotfix, the issue still isn't solved. None of the POST data is
available to ColdFusion in any reasonable or expected format, BUT.

You can ( post hotfix ) get to the posted data in query string format,
ironically, with the content property of the object returned from the CF

getHTTPRequestData( )

method.

So, the current makeshift solution is to parse that query string manually (
listToArray( "&" ) then listFirst and listLast on the "=" delimiter.

Which totally sucks. But it appears that that's the best you can do with IIS
7 and CF 8 right now. As a note, I think the handover works fine with IIS
6-. Pretty nutty.

Thanks David.


On Thu, Apr 2, 2009 at 11:21 AM, David Henry <
[email protected]> wrote:

>
> David,
>
> I'm not very familiar with IIS7 but POST data should live in the http
> request header, not in the url.  When you say the scope isn't populated
> are you talking about the form scope, right?  Could you provide some
> more details about what you are trying to do with post data?
>
> Sounds interesting :D
>
>
> David Henry
>
> David McGuigan wrote:
> > Using IIS7 to pass fake URLs throught to ColdFusion for parsing.
> >
> > Ex: http://www.whatev.com/benForta/favoriteFoods/
> >
> > Note: There is no benForta nor favoriteFoods directory.
> >
> > The URL scope works perfectly but when I submit a form using POST the
> > scope isn't populated.
> >
> > CGI.CONTENT_TYPE knows it's a application/x-www-form-urlencoded
> > request, but I can't get to those variables.
> >
> > Is there some lower-level way to access the POST data ( I'm assuming
> > URL and FORM just parse from some HTTP handover collection or string )??
> >
> > Thanks!
> >
> > >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to