Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Im not sure what to do 1

Status
Not open for further replies.

DantanaSwat

IS-IT--Management
Dec 3, 2003
29
US
Im new to Perl and scripting in general. Im in a Windows network with a bunch of dell machines. Our machine names are SVC followed by the dell service tag numbers. The new budget year is here and my manager was needing warranty info from all of the machines. I know how to pull the computernames from the WinNT space using VBScript...and pull off the SVC from the front but the sending it to the dell website is really getting me. It seems like this is a job best suited for Perl but I dont know how to even send info to a site. I do know that once I get to the warranty info site...in the source I look for </TR><TR><td WIDTH=&quot;625&quot; and read until </table></font></span></td> Everyting in between there is what Ill be needing.
Problems that confuse me.
1) how do I send the request. The site is but thats only after authentication (no you cant have my login) :) the login is from I dunno...im poretty confused right now but if I can learn this I think it'll be a big help in the future.
 
lwpcook ( will have loads of information to help. You'll have to use LWP::UserAgent to send a POST request to mimic the registration form. They're using SSL so you'll need the secion of lwpcook on HTTPS. They probably track you using cookies so you'll have to check that section too.

Once your script has logged in, you can then request whatever page you want using GET or POST, whichever is appropriate.
 
Well son of a....
Well..so far I went on and checked out some of the stuff on there..and it was giving an https protocol not supported...well...I went on and slapped in the most recnet vers of Activestate perl and it gives me that I need openssl installed. blahhh...now I cant find how to install open perl and active state hace no ppms for Crypt::SSLEay and I cant get the module to install vos I never installed openssl. sheesh...
 
update
I got everything installed but it seems that any request that I send it sends to the same page. Ill look up on how to send equests for whatever link I need to...this stuff aint easy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top