Skip to main content
Participant
December 16, 2008
Question

referral values when using cfhttp post with XML

  • December 16, 2008
  • 2 replies
  • 515 views
I'm using the attached code to post an XML string (with credit card & address info) to a credit card co. server for processing.

This works great. However, they now want to improve security by setting me up an approved http referrer on their server. I've tried giving them my values as the server IP address and the domain name (using their own web interface admin panel). Nothing works. A few questions.

1) Is there a way to figure out what referrer values my server is sending them when it does the post? (somehow view the actual post as it happens)
2) Is there a way to manually configure these values in the CFHTTP/PARAM code?

thanks!
This topic has been closed for replies.

2 replies

Inspiring
December 16, 2008
quote:

Originally posted by: bezly
1) Is there a way to figure out what referrer values my server is sending them when it does the post? (somehow view the actual post as it happens)
!


Change the URL to a CFML page on your test server, test.cfm. On your test.cfm use the GetHttpRequestData function to get the HTTP headers being submitted. See CF docs:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_e-g_43.html#1955092
bezlyAuthor
Participant
December 16, 2008
I tried changing the referer cfhttpparam but it didn't work.

I'll try the server test next.

Thanks for the help.
Inspiring
December 16, 2008
You might try setting the "Referer" value by using cfhttpparam with type="header".

If you change the target URL of your cfhttp call to your your test server what HTTP values are being posted?