Re: http authentication




> Brian wrote:
>> I am using a idHTTP to send some data to some
>> WebPages. The web pages is in a directory that has
>> a htaccess on it. I'm sure this can be done, but I can't
>> find it, how do I send a authentication to the server
>> via the INDY9 idHTTP so that i can post to them
>> even though there is a htacces on the directory?
>
> Have you tried handling the OnAuthorization event?
>
> Also, you can use the special URI format, below, that includes the user
> name and password.
>
> http://username:password@xxxxxxxxxx/path/to/resource
>
> --
> Rob

Thanks Rob the URI format worked, never gave that a thought !

Brian



.



Relevant Pages