Fred wrote:
> 7stud -- schreef:
>> request to.  If you send a request to that url and you don't get the 
>> response you want, then you either have a problem with your request, or 
>> there is a problem on the server side.
> 
> Thanks for explanation
> 
> Sorry, but i still don't understand.
> 
> In the first step when i do an HTTP:Post.new, i can change the behaviour
> of the php page, that he inserts some stuff and submit an button, i can
> see that when i call puts res.body.
> My problem is that after the first step, i have again an submit tbutton
> that i want to activate.

This is the way a submit works.  The submit button is part of a form. 
The form has an action attribute.  The action attribute specifies a url. 
When you click on a submit button that is displayed on a web page, all 
the information entered into the form is inserted into a request.  The 
request is then sent to the url listed in the action attribute.

In your ruby program, there are no submit buttons.  You only have a 
string with some html in it(resp.body).  Therefore, if you want to send 
a request, you need to decide what url to send the request to.   If you 
want to simulate clicking on a specific submit button, then you need to 
send a request to the url specified in the action attribute of the form 
that contains the submit button.  The request should contain any 
information that would have been entered in the form.  That means you 
have to search resp.body for the url that you want to send your request 
to, and your request has to contain all the information that you would 
have entered in the form.

-- 
Posted via http://www.ruby-forum.com/.