dcsimg
Basic Authentication not working
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   SyedSaulat_Rezvi
Posted On:   Friday, May 31, 2002 01:29 AM

Hi I want to upload files in a directory, for that I m using jsp:smart, the problem is I want to send the Authorization header along with the request to upload the file send from the browser. There is no method provided in the HttpServletRequest. And I dont want to use http://username:password@mysite.com/upload.jsp How can I modify the request object before sedning it to the upload.jsp. Actually when using this approach http://username:password@mysite.com/upload.jsp doesnt work, 1) MY first JSP sends the request to the second JSP that adds the username and password (http://username:password@mysite.com/uplo   More>>


Hi


I want to upload files in a directory, for that I m using
jsp:smart, the problem is I want to send the Authorization header along with the request to upload the file send from the browser.


There is no method provided in the HttpServletRequest.

And I dont want to use

http://username:password@mysite.com/upload.jsp


How can I modify the request object before sedning it to the upload.jsp.



Actually when using this approach

http://username:password@mysite.com/upload.jsp doesnt work,


1) MY first JSP sends the request to the second JSP that adds the username and password


(http://username:password@mysite.com/upload.jsp ) and redirects the page to the upload Jsp that requires
Authorization header in her request to upload the file in the protected directory.



2) if i use jsp:forward and change the url to relative i.e

it does'nt works. (Tomcat could not find the directory)


3) if I use response.sendRedirect("http://username:password@mysite.com/upload.jsp");
it successfully redirect the JSP but when I see the Headers list in the upload JSP i can not find the Authorization Header.



Need help


urgent


Thanks :-)


Saulat

   <<Less
About | Sitemap | Contact