Index of /~arunapad/Apache+HW6

      Name                    Last modified       Size  Description

[DIR] Parent Directory 27-Apr-2010 19:16 - [TXT] PerlEx.html 27-Apr-2010 18:01 1k [DIR] apache_1.3.26/ 14-Feb-2004 17:06 - [TXT] hw6.pl 22-Apr-2010 19:40 5k

Name:-         Aruna Padmanabhan
Student Id: -  7019982440
Email : arunapad@usc.edu

DESIGN : 

a. When user enters something in the textbox and clicks the submit button/ press the enter key on the keyboard, the control is given to the perl script.
b. Inside the perl script, there is code to check whether the request uses GET or POST method. If GET method , then the input string is obtained from the 'QUERY_STRING' 
    environment variable. If POST method, then the string is read from the input stream. 
c. The input string is parsed and the search string is appended to the standard VEOH URL and the contents of the webpage is obtained using 'get' menthod present in he SIMPLE class.
d. All the videos will be present within an Unordered List named 'browseList' in the resulting page. 
e. A regular expression is used to get the contents between <UL name=browseList...... </UL>. This result is further split into an array of <LI>...</LI> tags.
f.  Each <LI> tag  corresponds to a video on the link. Each <LI>..</LI> is processed to get the Title,Category,Duration,Views and Thumb value and as it processed a row in the table is created.
g. Close the table tag after all the elements in the LI array are processed . 
h. Incase if user enters an invalid string with no videos , a empty table is displayed.
i.  Incase if user doesnt enter the string, an alert is made to display.
j  print the display string atlast and the result will be shown on the browser. 

REUSED CODE : 

a. Code from the Assignment HINT section which tells about LWP is used.

FILES SUBMITTED : 

I    README 
II   PerlEx.html
III  hw6.pl