How to save session using open-uri

A

Arpit Tandon

I am trying to pull out some information from a site.

There are 2 steps involved in order to get data from site. The first
step is a translation of the some user id to THEIR id. After the
translation is complete,use THEIR id to pull out information. This first
page is performing the translation step and is then forwarding the
results to the tool page.
I am able to get the first page but cant save session to resubmit the
information.
It is required that the resubmission must be within the original api
session as necessary session variables are also set in that first step.

How can i keep session alive?

Arpit
 
A

Alex Stahl

Try using Mechanize. It will handle all the session & cookie detail for
you.
 
A

Arpit Tandon

Thanks, it worked.

There are couple of radio button that I need to "check" and then
generate a report by clicking another button. Below is example:


</tr>
<tr>
Functional Annotation Clustering</button></td><td></td>
</tr>
<tr>
<td> <button class='chart' onClick="CreateChart();"
type="button" value="Functional Annotation Chart" name="B2" >
Functional Annotation Chart </button> </td>
</tr>

<tr >
<td><button class='table' onClick="CreateTable();" type="button"
value="Functional Annotation Table" name="B1" > Functional Annotation
Table </button> </td>
</tr>

How can I "click" on 1st one- Functional Annotation Clustering?
It might be very simple but I am having hard time to find the solution

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top