Windows 인증을 사용하는 IIS 7.5 - POST에서 간헐적으로 오류 400 발생

Windows 인증을 사용하는 IIS 7.5 - POST에서 간헐적으로 오류 400 발생

우리 앱은 Windows 인증이 활성화된 IIS 7.5에서 실행됩니다. POST를 통해 파일을 업로드할 때 일부 사용자는 "잘못된 동사" 메시지와 함께 IIS에서 간헐적으로 오류 400을 보고합니다.

동일한 업로드 파일로 사용자와 동일한 양식을 작성하여 직접 재현할 수 있었는데, 2번 연속 실패하다가 3번째 성공했습니다.

Chrome의 네트워크 탭을 사용하여 실패한 시도와 성공한 시도 모두에서 요청 및 응답 헤더를 복사할 수 있었습니다.

차이점에 대한 내 해석은 인증 단계에서 실패했음을 시사하지만 틀릴 수도 있습니다. 내가 조사해야 할 사항에 대한 제안이 있습니까?

성공

POST <redacted> HTTP/1.1
Host: <redacted>
Connection: keep-alive
Content-Length: 26636
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: <redacted>
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryQ6KIItP6Z7A76guk
Referer: <redacted>
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: <redacted>
X-CookiesOK: I explicitly accept all cookies

HTTP/1.1 302 Found
Content-Type: text/html; charset=UTF-8
Location: <redacted>
Server: Microsoft-IIS/7.5
X-Powered-By: PHP/5.6.6
X-Powered-By: ASP.NET
Date: Wed, 17 Jun 2015 10:37:42 GMT
Content-Length: 164

실패하다

POST <redacted> HTTP/1.1
Host: <redacted>
Connection: keep-alive
Content-Length: 46013
Cache-Control: max-age=0
Authorization: NTLM <redacted>==
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: <redacted>
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryY5kiMQ9SHsqAoBjs
Referer: <redacted>
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: <redacted>
X-CookiesOK: I explicitly accept all cookies

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 17 Jun 2015 10:43:50 GMT
Connection: close
Content-Length: 326

http.sys추적하다:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
        <Provider Name="Microsoft-Windows-HttpService" Guid="{dd5ef90a-6398-47a4-ad34-4dcecdef795f}" />
        <EventID>52</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>1</Task>
        <Opcode>62</Opcode>
        <Keywords>0x8000000000000002</Keywords>
        <TimeCreated SystemTime="2015-06-17T13:14:10.558152100Z" />
        <Correlation ActivityID="{80000507-0000-7000-b63f-84710c7967bb}" />
        <Execution ProcessID="4" ThreadID="1376" ProcessorID="0" KernelTime="32565" UserTime="0" />
        <Channel>Microsoft-Windows-HttpService/Trace</Channel>
        <Computer />
    </System>
    <EventData>
        <Data Name="Status">0xC0000010</Data>
        <Data Name="RequestId">0x7000000080000507</Data>
        <Data Name="Reason">VerbLookupFailed</Data>
        <Data Name="ErrorCode">       2</Data>
        <Data Name="HintLength">       8</Data>
        <Data Name="HintData">0x535541696A6A5648</Data>
    </EventData>
    <RenderingInfo Culture="en-US">
        <Level>Error </Level>
        <Opcode>ParseRequestFailed </Opcode>
        <Keywords>
            <Keyword>Flagged on all HTTP events dealing with request processing </Keyword>
        </Keywords>
        <Task>HTTP Request Trace Task </Task>
        <Message>Parsing of request (request ID 0x7000000080000507) failed due to reason: VerbLookupFailed. Request may not be compliant with HTTP/1.1. </Message>
        <Channel>HTTP Service Channel </Channel>
        <Provider>Microsoft-Windows-HttpService </Provider>
    </RenderingInfo>
</Event>

관련 정보