Jeff,

It may well be that PlumTree is manipulating the headers before calling
third party  pages but that doesn't necessarily mean it is doing it via
CF code.

You can do v.limited header manipulation using CFHTTP...well, you can
set the user-agent header, and you can set some cookies but other than
that I'm not aware of another way using purely CF.

It is not that difficult to write a CFX or JSP Custom Tag...or indeed
access java.net.URL class to open a connection to port 80 or whatever
and then manually/programmatically create an HTTP request (including the
desired headers) to another resource...well, its not that difficult if
you know some Java, but may be you don't!

As other people have suggested, a quick and dirty way of testing is to
use Telnet and manually create the requests- headers included.

How much work do you want to do?

André

-----Original Message-----
From: Jeff Chastain [mailto:[EMAIL PROTECTED]] 
Sent: 18 February 2003 17:43
To: CF-Talk
Subject: RE: Set HTTP Headers

Okay, let me clear this up then, because setting http header variables
can
be done.

I have an instance of a PlumTree portal sitting on a set of production
servers.  I am trying to put together another application that PlumTree
can
be nice and talk to.

Now, PlumTree passes information from the portal itself to third party
applications via the http header.  So somehow the PlumTree portal is
manipulating the http header before it calls my function.

The http header when I receive it (i.e. I can dump the header variables
and
see the values) includes things like ...

CSP-CAN-SET = 'Gadget,User'
CSP-GATEWAY-TYPE = 'PlumTree'
CSP-PROTOCOL-VERSION = '1.1'

My function can then, through the use of getHttpRequestData,
see/read/use
these header values.

I am attempting to test my function on a development box - separate from
the
PlumTree system - and was trying to figure out how to set these
variables
before calling my function - i.e. make it look like PlumTree is doing
the
calling.

Hopefully this is more clear.

Thanks
-- Jeff


-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 18, 2003 11:23 AM
To: CF-Talk
Subject: Re: Set HTTP Headers


Jeff Chastain wrote:
> The headers that are sent by the browser are all that I am interested 
> in at this point.  I am just trying to figure out how to pass in some 
> test data.

You need a custom browser for that. Telnet is a nice one ;-)

The reason for this is quite simple actually. Suppose that just any 
website could tell any browser "from now on you will send this header", 
with 'this' being a unique identification. Sounds like something the EFF

and the /. crowd would go rather nuts about, wouldn't they?

Jochem



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to