cURL / Mailing Lists / curl-library / Single Mail

curl-library

Curl not able to handle multiple double-quotes in 401 challenge

From: sumit gambhir <sumitgambhir9_at_gmail.com>
Date: Mon, 11 Feb 2013 17:58:57 +0530

Hi,

Following is the scenario PUT with Digest authentication: -
1) Put request sent through Curl with Content-Length: 0
2) Server sent 401 Challenge with domain which contains
multiple double-quotes like shown below logs.

Observation-> Curl not able to handle the response and cancel the whole
request.

Can we have someway to handle multiple double-quotes in 401 response?

Logs : -
PUT /xcap-ap-service/resource-lists/users/
sip:5432100109_at_micromethod.com/index/~~/resource-lists/list%5b_at_name=%22Select%20Contact%22%5d/entry%5b_at_uri=%22sip:5432100108_at_micromethod.com%22%5dHTTP/1.1
Host: 10.44.104.93:8080
Accept: */*
x-3gpp-intended-identity:sip:5432100101_at_micromethod.com
Content-Type:application/xcap-el+xml
Content-Length: 0
HTTP/1.1 401 Unauthorized
Server: Sun GlassFish Communications Server 2.0
WWW-Authenticate: Digest realm="micromethod.com
",domain="/xcap-ap-service/resource-lists/users/
sip:5432100109@micromethod.com/index/~~/resource-lists/list[@name=<http://sip:5432100109@micromethod.com/index/~~/resource-lists/list%5B@name=>"Select
Contact"]/entry[@uri="sip:5432100108_at_micromethod.com
"]",nonce="1357298135411:12193AA21BE9C66124B03689B219FBA4",opaque="0B47F922993D2B3CAAEACFECEF0476875",stale=false,algorithm=MD5,qop="auth"
Content-Type: text/html
Content-Length: 1062
Date: Fri, 04 Jan 2013 11:15:35 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title>SunGlassFish
Communications Server 2.0 - Error report</title><style
type="text/css"><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
Status 401 - Unauthorized</h1><hr/><p><b>type</b> Status
report</p><p><b>message</b>Unauthorized</p><p><b>description</b>This
request requires HTTP authentication (Unauthorized).</p><hr/><h3>Sun
GlassFish Communications Server 2.0</h3></body></html>

Thanks and Regards,
Sumit Gambhir

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-11