HTTP/1.1 401 Unauthorized
Posted: Mon Sep 22, 2014 12:21 pm
Hi JfileUpload
we are getting HTTP/1.1 401 Unauthorized error while uploading using jfielupload
please see the java error logs mentioned below
if you need more erorr logs i can send that also
please suggest a solution
[DEBUG] header - >> "PUT /SIS/upload/AppletFileUpload.aspx?selectedProductID=1273&selectedFileID=7150 HTTP/1.1[\r][\n]"
[DEBUG] HttpMethodBase - Adding Host request header
[DEBUG] header - >> "overwritewarnforwardfile: all[\r][\n]"
[DEBUG] header - >> "Resumecommand: append[\r][\n]"
[DEBUG] header - >> "todo: upload[\r][\n]"
[DEBUG] header - >> "httpmethod: put[\r][\n]"
[DEBUG] header - >> "chunksize: 104857600[\r][\n]"
[DEBUG] header - >> "relativefilename: new.txt[\r][\n]"
[DEBUG] header - >> "Content-Type: text/plain[\r][\n]"
[DEBUG] header - >> "filename: new.txt[\r][\n]"
[DEBUG] header - >> "User-Agent: JFileUpload[\r][\n]"
[DEBUG] header - >> "Host: http://name[\r][\n]"
[DEBUG] header - >> "Cookie: ASP.NET_SessionId=ucep25oe5dbigpcgzhazkxnk[\r][\n]"
[DEBUG] header - >> "Content-Length: 15301[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] EntityEnclosingMethod - Request body sent
[DEBUG] header - << "HTTP/1.1 401 Unauthorized[\r][\n]"
[DEBUG] header - << "HTTP/1.1 401 Unauthorized[\r][\n]"
[DEBUG] header - << "Cache-Control: private[\r][\n]"
[DEBUG] header - << "Content-Type: text/html[\r][\n]"
[DEBUG] header - << "Server: Microsoft-IIS/7.5[\r][\n]"
[DEBUG] header - << "X-AspNet-Version: 4.0.30319[\r][\n]"
[DEBUG] header - << "X-Powered-By: ASP.NET[\r][\n]"
[DEBUG] header - << "X-Frame-Options: SAMEORIGIN[\r][\n]"
[DEBUG] header - << "Date: Mon, 22 Sep 2014 11:21:38 GMT[\r][\n]"
[DEBUG] header - << "Content-Length: 1293[\r][\n]"
[DEBUG] header - << "[\r][\n]"
[DEBUG] HttpMethodDirector - Authorization required
[DEBUG] HttpMethodDirector - Authentication challenge(s) not found
[INFO] HTTPUploadTransfer - Upload Status code = 401
[DEBUG] HttpMethodBase - Resorting to protocol version default close connection policy
[DEBUG] HttpMethodBase - Should NOT close connection, using HTTP/1.1
[DEBUG] HttpConnection - Releasing connection back to connection manager.
[INFO] HTTPUploadTransfer - Upload failed
we are getting HTTP/1.1 401 Unauthorized error while uploading using jfielupload
please see the java error logs mentioned below
if you need more erorr logs i can send that also
please suggest a solution
[DEBUG] header - >> "PUT /SIS/upload/AppletFileUpload.aspx?selectedProductID=1273&selectedFileID=7150 HTTP/1.1[\r][\n]"
[DEBUG] HttpMethodBase - Adding Host request header
[DEBUG] header - >> "overwritewarnforwardfile: all[\r][\n]"
[DEBUG] header - >> "Resumecommand: append[\r][\n]"
[DEBUG] header - >> "todo: upload[\r][\n]"
[DEBUG] header - >> "httpmethod: put[\r][\n]"
[DEBUG] header - >> "chunksize: 104857600[\r][\n]"
[DEBUG] header - >> "relativefilename: new.txt[\r][\n]"
[DEBUG] header - >> "Content-Type: text/plain[\r][\n]"
[DEBUG] header - >> "filename: new.txt[\r][\n]"
[DEBUG] header - >> "User-Agent: JFileUpload[\r][\n]"
[DEBUG] header - >> "Host: http://name[\r][\n]"
[DEBUG] header - >> "Cookie: ASP.NET_SessionId=ucep25oe5dbigpcgzhazkxnk[\r][\n]"
[DEBUG] header - >> "Content-Length: 15301[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] EntityEnclosingMethod - Request body sent
[DEBUG] header - << "HTTP/1.1 401 Unauthorized[\r][\n]"
[DEBUG] header - << "HTTP/1.1 401 Unauthorized[\r][\n]"
[DEBUG] header - << "Cache-Control: private[\r][\n]"
[DEBUG] header - << "Content-Type: text/html[\r][\n]"
[DEBUG] header - << "Server: Microsoft-IIS/7.5[\r][\n]"
[DEBUG] header - << "X-AspNet-Version: 4.0.30319[\r][\n]"
[DEBUG] header - << "X-Powered-By: ASP.NET[\r][\n]"
[DEBUG] header - << "X-Frame-Options: SAMEORIGIN[\r][\n]"
[DEBUG] header - << "Date: Mon, 22 Sep 2014 11:21:38 GMT[\r][\n]"
[DEBUG] header - << "Content-Length: 1293[\r][\n]"
[DEBUG] header - << "[\r][\n]"
[DEBUG] HttpMethodDirector - Authorization required
[DEBUG] HttpMethodDirector - Authentication challenge(s) not found
[INFO] HTTPUploadTransfer - Upload Status code = 401
[DEBUG] HttpMethodBase - Resorting to protocol version default close connection policy
[DEBUG] HttpMethodBase - Should NOT close connection, using HTTP/1.1
[DEBUG] HttpConnection - Releasing connection back to connection manager.
[INFO] HTTPUploadTransfer - Upload failed