Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Script to login to a website and pass the data and get the results to a file

Hi,

I need this for my Travel desk who needs to find trains availability every day for 100's of employers.They have a file with all the codes and data

http://www.southernrailway.org/

Click on Reservation Availability

Enter Train Number  :    
   
Enter Day, Month  :   - JanFebMar    
   
Enter Source Station Code  :      
   
Enter Destination Station Code  :      
   
Enter Class  :   First ACSecond ACThird ACAC Chair CarFirst ClassSleeper ClassSecond Seating
 
Enter Quota  :   Tatkal QuotaLadies QuotaDefence QuotaForeign TouristDuty Pass QuotaHandicaped QuotaParliament House QuotaGeneral Quota
 
   
Fill in all these details from a csv or xls file that i have.And get the details
I have all these details in a file one per line.
I have many rows that has these details.
   
If any help would be of great use to them.

Regards
Sharath
Avatar of schybert
schybert

These sorts of Web conversations are easily created using HTTPUnit (http://httpunit.sourceforge.net/). It's a testing framework, but it could be used for this sort of thing as well.
Wow.... excuse me. I thought I was looking at the Java section :-)
could you please post an example of your CSV file, just 1 example with all required data
Avatar of bsharath

ASKER

Here is the data in the csv
Enter Train Number     Enter Day, Month           Enter Source Station Code        Enter Destination Station Code         Enter Class  :     Enter Quota

The Enter Class and Enter quota should have a drop down list as mentioned in the question.
this is your data? I assume it is something like a header line for your data, please providea real example, or explain each field. Also post unambigious data without any doubt about spaces and tabs, so that we can see the columns.

> .. should have a drop down list ..
hmm, in your question title your write
> and get the results to a file
this makes me assume that you're interested in a simple URL to make the query.
Such a URL cannot have a drop down list.

Am I missing something here?
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial