[cups.development] How to deal with HTTP_UNAUTHORIZED

Michael Sweet msweet at apple.com
Mon Dec 28 23:07:41 PST 2009


Use one of the cupsDo*Request functions with a password callback -  
Basic is not the only authentication scheme, and you need to do  
httpReconnect and a new httpPost call to start a new request.

On Dec 28, 2009, at 10:59 PM, Mangesh Kute wrote:

> Hi,
>
> On receiving "HTTP_UNAUTHORIZED' message from IPP server,
> I use "httpSetAuthString" to set Auth string encoded using
> httpEncode64_2 with scheme Basic.
> I also set HTTP_AUTHORIZATION_FIELD using httpSetField.
> Then call htppUpdate with same http object.
> But every time it returns with status HTTP_UNAUTHORIZED.
>
> How to deal with this ?
> Am I following wrong steps ?
>
> Can someone please explain the flow ?
> I am using CUPS 1.3.9
>
> Regards,
> Mangesh
>
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups-devel mailing list