CFHTTP Host Header Issue

2014-10-07 Thread Donnie Carvajal

Hi All,

I have a project that requires me to connect to a web server that requires a 
request header host value that is different from the URL of the request.  For 
example...

cfhttp url=http//www.domain1.com method=post
chttpparam type=header name=Host value=www.domain2.com
...
/cfhttpparam

Does anyone know if cfhttp can send a separate Host in the header from the 
cfhttp url attribute?

Thanks,

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359410
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Host Header Issue

2014-10-07 Thread Russ Michaels

this would be spoofing and is very easy to do. Whether or not you can do it
via cfhttp I do not know, if not then try adding a cfheader as well. You
should certainly be able to do it from the web server, I know on IIS you
can use the URL rewrite tool to change OUTGOING requests as well as
incoming.

However the more legitimate way to do it, would be to simply add your other
domain as an alias to the site, and use that to access the page, so it is a
legitimate request. The domain name the request comes from should be the
one sent in the host header.

On Tue, Oct 7, 2014 at 5:25 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:


 Hi All,

 I have a project that requires me to connect to a web server that requires
 a request header host value that is different from the URL of the request.
 For example...

 cfhttp url=http//www.domain1.com method=post
 chttpparam type=header name=Host value=www.domain2.com
 ...
 /cfhttpparam

 Does anyone know if cfhttp can send a separate Host in the header from the
 cfhttp url attribute?

 Thanks,

 Donnie Carvajal

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359411
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm