Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-01-2015, 12:35 PM   #1
LQ Newbie
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
File upload from putty to a secured website

->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 and provide username and password
2.redirected to another URL www.example2.asp and after clicking on a folder icon. is getting redirected to another URL

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
Old 05-01-2015, 05:57 PM   #2
Registered: Mar 2008
Posts: 17,000

Rep: Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513
Do you own this server or web site?

The best solution is to access the folder location where these files are located at without trying to bypass any third party stuff.
Old 05-03-2015, 01:53 AM   #3
LQ Newbie
Registered: May 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
No its clients library, we have credentials to that server, manually we are uploading files through browser, just wanted to automate this process

when ever i am trying to give the folder url, its getting redirected to login page

Last edited by Hemanadh; 05-03-2015 at 01:55 AM.
Old 05-03-2015, 03:55 AM   #4
Registered: May 2001
Posts: 29,359
Blog Entries: 55

Rep: Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546
I agree the easiest most efficient solution is to access your upload directory via FTPS, SFTP, SCP or any other suchlike means instead of trying to figure out how to use credentials and HTTP POST. Note the most important thing about your initial post that's wrong is that you only tell us (lotsa words) what you have tried. What you should do instead is show exactly (post code) what you have tried.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open a website in browser while accessing server through Putty MohammadAamir Linux - Newbie 9 10-22-2012 05:19 AM
Cannot attach/upload JPEG files through any website. Other file formats are fine. yamel Linux - Newbie 11 07-02-2009 01:18 PM
What about non secured cmd lines through AIM ?? (ssh like, non secured) frenchn00b Debian 2 11-17-2008 01:52 AM
Fedora 6 FTP configuration for website file upload Madone_SL_5.5 Linux - Software 0 10-27-2006 04:54 PM
Any good apps to upload fles to website darin3200 Linux - Software 2 04-15-2003 09:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration