LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2016, 07:18 AM   #1
greenPea27
LQ Newbie
 
Registered: Sep 2016
Posts: 5

Rep: Reputation: Disabled
Lynx Questions


Hello
I have recently discovered lynx but I have some questions about its uses
They are:
1.Can lynx be used to change or edit authorization information for certain sites and if it can how can it be done?
and
2.Can the lynx -dump command be used to output entire folders in the same way it is used to output files?
and
3.Can lynx output or print authorization information required to access a given URL? (i.e. usernames. passwords or emails)

Any answers you can provide me with would be great

Thanks
 
Old 09-14-2016, 07:41 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,290

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
i have better luck with wget (also curl):
Code:
wget --user=schneidz --password=hello-world --post-data "user_id=greenpea27&password=hello-world&host=linuxquestions&path=linux-software&action=button-ok" "http://www.linuxquestions.org"
it depends on how you programmed the website. some sites authenticate generally; and some require specific post-data keys to be uploaded to authenticate.
 
Old 09-14-2016, 09:49 PM   #3
greenPea27
LQ Newbie
 
Registered: Sep 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
i have better luck with wget (also curl):
Code:
wget --user=schneidz --password=hello-world --post-data "user_id=greenpea27&password=hello-world&host=linuxquestions&path=linux-software&action=button-ok" "http://www.linuxquestions.org"
it depends on how you programmed the website. some sites authenticate generally; and some require specific post-data keys to be uploaded to authenticate.
thank you so much schneidz - so this command will change and set my login on the server?
 
Old 09-15-2016, 07:36 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,290

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
^ nope. it will attempt to login to your server and download the requested webpage.

how did you setup authentication on your server. does it have a pop-up prompt like this:
http://iso.linuxquestions.org/isoadmin/admin.php
if so, you will want to use the --user=/--password= flags.

if the webpage has text-fields for user-id and password like this:
http://www.linuxquestions.org/

then you will need to use --post-data and whatever key-value pairs you setup on the page.

Last edited by schneidz; 09-15-2016 at 07:37 AM.
 
Old 09-15-2016, 06:04 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,708
Blog Entries: 28

Rep: Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522
Quote:
1.Can lynx be used to change or edit authorization information for certain sites and if it can how can it be done?
If by this you mean can lynx be used to register for sites, enter passwords, and stuff like that there, the answer is generally yes. The same goes for links, elinks, and w3m, the other text browsers I have some experience with.

In Lynx, you can enter text directly into the field where it appears on the page. In w3m (which is my text browser of choice, meaning that when I have to use a text browser that's the one I use), you place the cursor on the field, hit enter, and a text dialog opens at the bottom to the screen to receive the input.

If you are referring to more specialized uses, please let us know what they are.

Last edited by frankbell; 09-15-2016 at 06:06 PM.
 
Old 09-15-2016, 09:06 PM   #6
greenPea27
LQ Newbie
 
Registered: Sep 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
I apologize for not being clear but basically all I want to do is log into a website to delete a profile I forgot existed but I have forgotten the password I used to access it so I need something to set a new password to my account so I am able to delete it.
 
Old 09-15-2016, 09:22 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,708
Blog Entries: 28

Rep: Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522Reputation: 5522
It depends on the website and how heavily it relies on javascript. It's certainly worth a shot. If you are not used to using a text browser, expect a bit of a learning curve, because it's a step back in time.

According to this, links (another text browser) does support javascript.
 
Old 09-16-2016, 01:51 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,949
Blog Entries: 11

Rep: Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420
Quote:
Originally Posted by greenPea27 View Post
I apologize for not being clear but basically all I want to do is log into a website to delete a profile I forgot existed but I have forgotten the password I used to access it so I need something to set a new password to my account so I am able to delete it.
why do you think you need lynx for that?

what you need to do, is enter your username, click the "forgot password?" link, and wait for email to arrive. if there's no "forgot password?" link, find the contact email, and send them an email explaining the situation.

why does it matter which browser you choose to accomplish that?
 
Old 09-17-2016, 06:38 AM   #9
greenPea27
LQ Newbie
 
Registered: Sep 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
why do you think you need lynx for that?

what you need to do, is enter your username, click the "forgot password?" link, and wait for email to arrive. if there's no "forgot password?" link, find the contact email, and send them an email explaining the situation.

why does it matter which browser you choose to accomplish that?
I already know that ondoho however I have blocked those emails from my inbox because I thought I had already deactivated my account :P so that is why I'm here.
I do know/have heard of the curl-X DELETE command but I am concerned that it may go wrong and fail to solve my problem
 
Old 09-17-2016, 09:42 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,949
Blog Entries: 11

Rep: Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420Reputation: 5420
Quote:
Originally Posted by greenPea27 View Post
I have blocked those emails from my inbox because I thought I had already deactivated my account
unblock them?
 
Old 09-17-2016, 10:23 PM   #11
greenPea27
LQ Newbie
 
Registered: Sep 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
yes...well this has been 'fun' but I think I may have found my solution elsewhere - could someone please tell the admin staff to delete this thread and account as I won't be needing it.
 
Old 09-18-2016, 08:48 AM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,290

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
^ please share so that future posters could benefit.
 
  


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
Lynx Franklovesguinness Linux - Newbie 4 09-29-2008 06:49 PM
Lynx dudeman41465 Linux - Software 2 11-14-2005 07:46 AM
lynx all the way!! mcd Linux - Newbie 1 08-30-2003 06:05 PM
lynx nautilus_1987 Linux - Software 1 03-06-2003 11:48 AM
lynx gui10 Linux - Software 17 06-09-2002 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:18 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
Open Source Consulting | Domain Registration