ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 28th, 2005, 06:27 PM
gaming_mouse gaming_mouse is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 16 gaming_mouse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 47 m 20 sec
Reputation Power: 0
CFHTTP: Imitating a Browser

I want to send a cfhttp request whose header contains the following fields AND ONLY the following fields:

Host
User-Agent
Keep-Alive (value=300)
Connection (value=keep-alive)
Accept
Accept-Language
Accept-Encoding
Accept-Charset

My problem is that I can't tell if my cfhttpparams are working. Eg,

<cfhttpparam type = "cgi" name="connection" value="keep-alive">
<cfhttpparam type = "cgi" name="xxxxxxxxxxxx" value="whatever">

will both be sent in the header if I put them in the cfhttp tag. But the fact that "xxxxxxxxxx" is sent makes me wonder if the connection header is even correct. That is, it might be that for the browser to recognize the "connection" header I need to write something like this:

<cfhttpparam type = "cgi" name="connection_type" value="keep-alive">

or something else like that. Anyway, does anyone know what all the correct cfhttpparam tags would be for the headers I listed above?

Also, coldfusion seems to automatically add a header call TE, whose value is "trailers, deflate, gzip, compress". What does this do and can I get rid of it?

TIA,
gm

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > CFHTTP: Imitating a Browser


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT