> Is there any way to set a header item in an outgoing CFHTTP
> request? I'm working with an API that needs a custom header
> item inserted in a GET request. I'm thinking something like:
>
> <CFHTTP url="http://server1/xmlnotify.asp" method="GET">
> HTTP_AUTHORIZATION: Digest userName="cseibert"
> nonce="a1faa6e2b8a21722a845926368b4f2f1"
> </CFHTTP>
>
> or
>
> <CFHTTP
> url="http://sync1.bh-bos2.bullhorn.com/xmlnotify.asp?folderTyp
> e=1&folderName=Contacts" method="GET">
> <CFHEADER name="HTTP_AUTHORIZATION" value="Digest
> userName=""cseibert"" nonce=""a1faa6e2b8a21722a845926368b4f2f1""">
> </CFHTTP>
>
> Neither of which seem to work. I know that CFHEADER is used
> to return headers to the browser, I'm just illustrating the
> syntax I would like to exists, hehe. Ideas?
You can use the CFHTTPPARAM tag to set headers, among other things:
<cfhttp ...>
<cfhttpparam type="header" name="AUTHORIZATION" value="...">
</cfhttp>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210239
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54