Thread: Lynx with perl

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    112
    Rep Power
    15
    Hi
    I am accessing a page on the net using lynx, when i use lynx though telnet i get the following message
    www.xyz.com cookie: ASPSESSION=FFEFNAIAPADA Allow? (Y/N/Always/neVer)

    Now when i run the command via a perl script using the follwoing syntax :
    -------------------------------------
    print "Content-type: text/htmlnn";
    $url = "http://www.xyz.com";
    open (TEMP, "/usr/bin/lynx -source '$url'|") | | die "boom...";
    while (<TEMP> ) {

    print $_;
    }

    close (TEMP);

    ------------------------------------------

    I get page cannot be displayed on the browser , which i dont really mind my questions is that is there anyway i could grab that ASPSESSION=FFEFNAIAPADA value using this script ?

    My 2nd question is :

    If i create an HTML form , and then want to submit it to http://www.abc.com/login.asp it works ok , is there a way i can create a form but rather that it being submitted via IE its submitted via lynx ? i cant send any values via the url ,as the script on the other side is configured to chuck an error if this happens

    Sorry i think i am confusing everyone here , but i am need of some help so go on answer my question

    Waseem

    ------------------
    visit the next big thing in Information Technology http://www.itstop.com
    pre-register now
    Into sport ? goto
    http://www.sportwebpages.com
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    4
    Rep Power
    0
    Your second question:

    Try to make a local script that you reads the GET-input, and sends it as POST-output (to login.asp).

    Information about how to post forms from Perl: http://www.devshed.com/Talk/Forums/F...ML/000387.html
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    4
    Rep Power
    0
    Your second question:

    Try to make a local script that you reads the GET-input, and sends it as POST-output (to login.asp).

    Information about how to post forms from Perl: http://www.devshed.com/Talk/Forums/F...ML/000387.html

IMN logo majestic logo threadwatch logo seochat tools logo