I tried your code and i did not get any errors but i am getting this message:
<HTML></HTML>
HTTP/1.0 200 OK
Content-Type: text/html
Client-Date: Wed, 17 Oct 2007 13:00:23 GMT
Client-Peer: ip address
Refresh: 0; URL=https://www.somesite.com/import.do
<HTML></HTML>
The file is not uploaded. I am not sure what could be the problem. Other thing is there is no login page but the login is via the integrated login where IE asks for Username and pwd when this site is invoked.
any idea if i am doing anything wrong?