I want to set the Authorization header to Base64(username:password).

I am tyring to retrieve a Web file from a secure resource but getting a 401 access 
denied even though when I enter the URL directly into the browser I get straight in 
using the following syntax:

http://username:[EMAIL PROTECTED] 

There are several special characters in the password which I think may be stuffing 
things up.

The server is running IIS 5 so I am guessing that CFHTTP does not set the 
Authorization header but that IE does. I found out about the Base64 stuff in the 
following VB article:

http://www.vbip.com/winsock/winsock_http_04_01.asp

Thoughts anyone?

P.S. I have tried <cfhttp url="my.example.com" username="username" password="password">

>>> "Paul Johnston" <[EMAIL PROTECTED]> 02/20/03 12:12pm >>>
> FYI, CFHTTP allows you to rewrite the user agent value.

> If you want to create something more complex (ie spoofing a 
> request so it looks like it came from IE) use something else, 
> like a custom tag.  I'm sure there's a CFX_HTTP around somewhere.

Okay... Bad example... But you know what I mean.

Adam, what did you want to do?

Paul



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ 

To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
For human help, e-mail: [EMAIL PROTECTED] 



***************************************************************************
This message has been swept for viruses and other
unsuitable content by the Ofsted Mail Sweeper in
accordance with OFIN 59, however care should be 
taken when opening any attachments from an untrusted
source.
***************************************************************************




**********************************************************************
We cannot accept any liability for any loss or damage
sustained as a result of software viruses. It is your
responsibility to carry out such virus checking as is necessary before opening any 
attachment to
this message.

The information in this email and any files transmitted with
it may be of a confidential nature and is intended solely for
the addressees. If you are not the intended addressee, any
disclosure, copying or distribution by you is prohibited and
may be unlawful.

www.ofsted.gov.uk
**********************************************************************


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to