Dick, that is very interesting, so it looks like the USER_AGENT=Cold Fusion 
4.0 overrides whatever you send along w/cfhttp as a cgi value.

That may be behind my difficulties...hmm, I could ask them to modify their 
code, not sure if they will make such a change for lowly me, but it's worth 
a shot.

Andrea

----Original Message Follows----
From: "Lawrence B. Afrin, M.D." <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: HTTP request and CGI variables
Date: Sun, 23 Apr 2000 08:55:18 -0400

I had some difficulties with this problem recently, too, when I needed to
implement a monitor that checks on another site.  Some things to be aware
of:

1) The USERAGENT param to CFHTTP did not become available until CF4.5.  I
don't believe trying to set the user agent via CFHTTPPARAM in earlier
version of CF will accomplish the desired effect.  If you're not at 4.5,
upgrade, then use CFHTTP USERAGENT=...

2) Note that there is a problem in the cfhttp.dll with 4.5 that causes
buggy CFHTTP METHOD=POST operations (such that the receiving server will
misunderstand/reject the request).  A hotfix (basically, an updated
cfhttp.dll) is available at
http://www.allaire.com/handlers/index.cfm?ID=14140&Method=Full, or you can
upgrade to 4.5.1, which includes this and all other 4.5 hotfixes, I believe.

-- LBA

--On Sunday, April 23, 2000, 1:26 AM -0700 Dick Applebaum <[EMAIL PROTECTED]>
wrote:

 >
 > Andrea
 >
 >
 > I never had the need to examine this before, so I wrote a little
 > program to check it out.
 >
 > CF passes a HTTP_USER_AGENT of:
 >
 >    ColdFusion 4.0
 >
 > I can understand arguments for and against allowing you to spoof the
 > user agent.
 >
 > (Tango does).
 >
 > I couldn't find anything in any CFDocs that says you can't.... but
 > that probably means... you can't.
 >
 >
 > In your case, maybe you can convince the ASP programmer to accept
 > ColdFusion 4.0 as a valid browser???
 >
 >
 > HTH
 >
 > Dick
 >
 >
 >
 > At 7:23 PM +0000 4/21/2000, Andrea W wrote:
 >> I am sending an http request using cfhttp to register a user on a remote
 >> site - the remote site is using asp. The asp code is looking for the
 >> browser type in the cgi variables. I am sending it the browser type as
 >> follows:
 >>
 >> <cfhttp
 >> url="http://remote.server.com/signup/signup.asp?username=andrea&passw
 >> ord=sesame"
 >> method="post" resolveurl="true">
 >>
 >> <CFHTTPPARAM TYPE="CGI" NAME="HTTP_USER_AGENT" VALUE="Mozilla/4.0
 >> (compatible; MSIE 5.01; Windows NT)">
 >>
 >> </cfhttp>
 >>
 >> But the remote app is still balking and claiming that I have an old
 >> browser version. Does anyone know if there is some way that using the
 >> cfhttp tag can tack on some cgi variables that cannot be overridden by
 >> the cfhttpparam? I have shown this code to the asp developer who wrote
 >> the code that accepts the user registration, and he said the
 >> HTTP_USER_AGENT variable looked correct and is what his app is looking
 >> for.
 >>
 >> Thanks,
 >>
 >> Andrea Wasik
 >>
 >> ________________________________________________________________________
 >> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
 >>
 >> ------------------------------------------------------------------------
 >> ------ Archives: http://www.eGroups.com/list/cf-talk
 >> To Unsubscribe visit
 >> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_tal
 >> k or send a message to [EMAIL PROTECTED] with
 >> 'unsubscribe' in the body.
 >
 > -------------------------------------------------------------------------
 > ----- 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.


------------------------------------------------------------------------------
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.

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

------------------------------------------------------------------------------
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