That would be a good tool to have. Sounds like it wouldn't even be limited to Drupal sites. <br><br>But Martin is just looking to post unmodified page nodes. As a one shot thing, the standard drupal_execute() should be fine. If, for some reason you want it as an ongoing process, Gerhard and Andrew's concerns become important.<br>
<br><div class="gmail_quote">On Thu, Feb 5, 2009 at 5:46 PM, Jimmy Berry <span dir="ltr"><<a href="mailto:jimmy@boombatower.com">jimmy@boombatower.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
@Marco:<br><br>If you used a the abstract browser and a script you could programmatically access any feature provided through Drupal's web interface from a script on a local machine. The script could login to the remote server and perform any action the user can.<br>
<br>Using the core browser you only need to specify the values you would as a user...all the default values are already picked up and sent as a standard broswer does (ie. checkbox states, hidden values, etc).<br><br>Having such a tool would allow you to programmatically perform numerous operations on any number of remote servers with a single command. I see a great use being the update script that would allow you to run it on any number of sites at once, instead of navigating to each manually.<br>
<br>This method requires no additional setup or configuration of the server. Just run the script and it will act as though it were a standard user browsing the site. To create a node you would need something like this:<br>
<br>$edit = array(<br> 'title' => 'New node',<br> 'body' => 'Some text'<br>);<br>$browser->post('<a href="http://example.com/node/add/page" target="_blank">http://example.com/node/add/page</a>', $edit, 'Submit');<br>
<br>You can see how simple it would be to perform just about any operation as it already deals with cookies and such.<br><font color="#888888"><br>Jimmy<br>
</font></blockquote></div><br>