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

FIELDNAMES need to change to lowercase using cfhttp

Explorer ,
Jan 23, 2009 Jan 23, 2009
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
1.0K
Translate
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
<cfset form.fieldnames=lcase(form.fieldnames)>
Translate
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
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.
Translate
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
Who is handling the cfhttp tag?
Translate
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
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.
Translate
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
> 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.
Translate
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
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.
Translate
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
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.
Translate
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