LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-01-2015, 01:35 PM   #1
Hemanadh
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 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
 
Old 05-01-2015, 06:57 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
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, 02:53 AM   #3
Hemanadh
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 02:55 AM.
 
Old 05-03-2015, 04:55 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
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.
 
  


Reply


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 06:19 AM
Cannot attach/upload JPEG files through any website. Other file formats are fine. yamel Linux - Newbie 11 07-02-2009 02:18 PM
What about non secured cmd lines through AIM ?? (ssh like, non secured) frenchn00b Debian 2 11-17-2008 02:52 AM
Fedora 6 FTP configuration for website file upload Madone_SL_5.5 Linux - Software 0 10-27-2006 05:54 PM
Any good apps to upload fles to website darin3200 Linux - Software 2 04-15-2003 10:45 PM


All times are GMT -5. The time now is 05:13 AM.

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