->Need to upload a file from Unix box(Putty) to a website.
->Tried Wget and curl to upload a file to that website, when ever i am trying to fire the command its redirecting to Login page.
->for this purpose i have used cookies option to pass the Login information next time, but its giving empty cookie file and returning entire HTML page.
->used various options like redirecting,load cookies, for wget and curl, but everything is going in vain.
->Normally browser login process for that website is :
1.Login page www.example1.com/login and provide username and password
2.redirected to another URL www.example2.asp and after clicking on a folder icon.
3.it is getting redirected to another URL www.example3.com/folders.do?id=12433434324
i have to upload the file in the third URL and to a particular folder in that page, folders are containing different ids.
Please share your knowledge on this and provide solution as best as you can ,thanks