|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CFHTTP: Imitating a Browser |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|