• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

FIELDNAMES need to change to lowercase using cfhttp

Explorer ,
Jan 23, 2009 Jan 23, 2009

Copy link to clipboard

Copied

I searched and have come up empty handed.

I'm trying to cfhttp post some form variables to a vendors web page. Their web page needs lowercase form.fieldnames, Coldfusion forces all form.fieldnames to uppercase. What setting/attribute have I over looked?????

In the example: username and email come across as USERNAME and EMAIL

Thanks for the help!
TOPICS
Advanced techniques

Views

864

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 23, 2009 Jan 23, 2009

Copy link to clipboard

Copied

<cfset form.fieldnames=lcase(form.fieldnames)>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 23, 2009 Jan 23, 2009

Copy link to clipboard

Copied

If I was handling the post page that would work...of course if I were handling the post page in CF it wouldn't matter as CF is case insensitive.

I'm using cfhttp to post to an external non-cf site that is expecting lowercase fieldnames, which should redirect to that site if Statuscode=200. When cf pass the http request, it makes all the fieldnames uppercase.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 23, 2009 Jan 23, 2009

Copy link to clipboard

Copied

Who is handling the cfhttp tag?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 24, 2009 Jan 24, 2009

Copy link to clipboard

Copied

The CFHTTP tag is on my site and post to a vendor's site.

I must not understand your suggestion: <cfset form.fieldnames=lcase(form.fieldnames)>. Because I don't have form object available to my pages unless I post to my site.

Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 25, 2009 Jan 25, 2009

Copy link to clipboard

Copied

> Coldfusion forces all form.fieldnames to uppercase.

In the fieldnames variable yes. But I do not think that is the case with the raw request data, which is what the other server receives. Post the data to a test page and look at the GetHttpRequestData() content. The case of the field names should be the same as in your cfhttpparam tags.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 26, 2009 Jan 26, 2009

Copy link to clipboard

Copied

Turns out....that the the SSL cert need to be imported into CF.

The silly vendors Jstrut developer was like, "why you passing vars in upper"... I was like, "I'm not!"

Any way...sorry for any undo time spent on this.

Thanks to Steven Erat's Blog...he's saved more than one with that post.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 26, 2009 Jan 26, 2009

Copy link to clipboard

Copied

LATEST
> The silly vendors Jstrut developer was like, "why you passing vars in upper"... I was like, "I'm not!"
> Thanks to Steven Erat's Blog...he's saved more than one with that post.

Yes, that did not sound right. Thanks for posting the resolution. That is good to know.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation