Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old November 29th, 2000, 04:25 AM
walshs walshs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 112 walshs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

Reply With Quote
  #2  
Old November 30th, 2000, 12:39 AM
udd udd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 udd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to udd
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/Forum6/HTML/000387.html

Reply With Quote
  #3  
Old November 30th, 2000, 12:45 AM
udd udd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 udd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to udd
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/Forum6/HTML/000387.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Lynx with perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway