3

As I can access the source code with lynx, w3m, links, etc. protected with a form.

lynx -source -auth=user:pass domain.com

lynx -source -accept_all_cookies -auth=user:pass domain.com 

lynx -accept_all_cookies -auth=user:pass domain.com

all fail me.

thx.

Ziyaddin Sadigov
  • 8,893
  • 13
  • 34
  • 41
user1847844
  • 77
  • 2
  • 7

2 Answers2

4

What about:

lynx --source -accept_all_cookies -auth=user:pass "domain.com"

The -- and the semicolon play the role for me sometimes.

Gustavo Morales
  • 2,614
  • 9
  • 29
  • 37
Rishav
  • 3,818
  • 1
  • 31
  • 49
0

If there is a logon form before the page, you cannot pass it with lynx or similar applications

you should actually write some scripts. use something like Mechanize module either on Perl or Python!

somthing like this:

import mechanize

browser = mechanize.Browser()
browser.open(YOUR URL)
browser.select_form(nr = 0)
browser.form['username'] = USERNAME
browser.form['password'] = PASSWORD
browser.submit()
Arash
  • 400
  • 4
  • 11