> Does anyone know how to set the browser version on a CFHTTP
> request. I need to set it to something that is at least a
> version 4 browser, for example:
>
> "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)"
>
> because right now my request is being rejected by the asp
> page I am trying to send info to because it thinks it is
> talking to an old browser.

If you're using CF 4.5.x, you can set the USERAGENT attribute in the CFHTTP
tag. If not, you can send it in a CFHTTPPARAM as a CGI variable, but you'll
have to use METHOD="POST" in your CFHTTP tag, I think:

<CFHTTP URL="http://www.whatever.com/myfile.asp"
        METHOD="POST">

        <CFHTTPPARAM TYPE="CGI" NAME="USER_AGENT" VALUE="Mozilla/4.0 (compatible;
MSIE 5.0; Windows NT; DigExt)">

</CFHTTP>

Note that you'd leave off the "HTTP_" part.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to