nahi/httpclient — Issue #75: auth digest broken for streaming POST (with file)
Author: acatighera
Created: 2011-12-13 20:30:19+00:00
State: open

Second request has file param empty

```

= Request

! CONNECT TO localhost:8080
! CONNECTION ESTABLISHED
POST /tag_gen/api/notice/107 HTTP/1.1
Content-Type: multipart/form-data; boundary=bd5a534ebd52c5423c0060469e6a46c862381f1e
Date: Tue, 13 Dec 2011 20:10:42 GMT
Content-Length: 556645
Host: localhost:8080

--bd5a534ebd52c5423c0060469e6a46c862381f1e
Content-Disposition: form-data; name="icon_container_opacity"

60
--bd5a534ebd52c5423c0060469e6a46c862381f1e
Content-Disposition: form-data; name="type"

pop

--bd5a534ebd52c5423c0060469e6a46c862381f1e
Content-Disposition: form-data; name="advertiser_logo_file"; filename="RackMultipart20111213-2527-1ltc94o-0"
Content-Type: image/png

00000000 89504e47 0d0a1a0a 0000000d 49484452 .PNG........IHDR
00000010 000002b2 0000021f 08060000 008cfb3f ...............?
.......

= Response

HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
WWW-Authenticate: Basic realm="betteradvertising.com"
Content-Type: text/html;charset=utf-8
Content-Length: 954
Date: Tue, 13 Dec 2011 20:10:42 GMT

Apache Tomcat/6.0.20 - Error report

HTTP Status 401 -

type Status report

message

description

This request requires HTTP authentication ().

Apache Tomcat/6.0.20

= Request
'''

Second request

```

POST /tag_gen/api/notice/107 HTTP/1.1
Content-Type: multipart/form-data; boundary=6bccd86bd52335b1242c374bfa979cf188b1e48d
Authorization: Basic YXBpQGJldHRlcmFkdmVydGlzaW5nLmNvbTpBZFNhZmU5OSMk
Date: Tue, 13 Dec 2011 20:10:45 GMT
Content-Length: 556645
Host: localhost:8080

--6bccd86bd52335b1242c374bfa979cf188b1e48d
Content-Disposition: form-data; name="icon_container_opacity"

60
--6bccd86bd52335b1242c374bfa979cf188b1e48d
Content-Disposition: form-data; name="type"

pop
--6bccd86bd52335b1242c374bfa979cf188b1e48d
Content-Disposition: form-data; name="advertiser_logo_file"; filename="RackMultipart20111213-2527-1ltc94o-0"
Content-Type: image/png

= Response

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=76B24973927409AD8D54E6E02510974D; Path=/tag_gen
Pragma: no-cache
Cache-Control: no-cache, no-store, max-age=0
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Transfer-Encoding: chunked
Date: Tue, 13 Dec 2011 20:10:46 GMT
Connection: close
```