On the Drupal side, you should also look at the Services module, which offers XML-RPC services for creating nodes as well as many other Drupal functions.<br><br><div class="gmail_quote">On Wed, Jan 7, 2009 at 8:01 AM, Richard Morse <span dir="ltr">&lt;<a href="mailto:remorse@partners.org">remorse@partners.org</a>&gt;</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;">I developed something similar which uses the XML-RPC mechanism to create nodes. I wrote a custom module to receive the data, create a node object, and call node_save() on it. To submit the data, I used Perl.<br>

<br>
If you&#39;re interested, I can send you the code.<br>
<br>
Ricky<div><div></div><div class="Wj3C7c"><br>
<br>
On Jan 4, 2009, at 3:39 AM, M. Fioretti wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greetings,<br>
<br>
I would like to ask all Drupal developers where to find the info to do<br>
what I describe below. I have already found almost identical questions<br>
asked both on the support list and in the forums at <a href="http://drupal.org" target="_blank">drupal.org</a>, but they<br>
did not receive complete answers, so here I am.<br>
<br>
I want to write a shell script which takes as input an HTML file and other<br>
parameters (title, category, etc...) and then, using curl and the POST<br>
method, logs into a Drupal website, adds a node with that text and<br>
parameters, logs off and returns the complete URL assigned by drupal to<br>
that page.<br>
<br>
The information I need is:<br>
<br>
- what is the exact sequence of pages (relative URLs) that drupal presents<br>
to users who login and then want to add a node?<br>
- what is the complete list of POST parameters (assuming there is only one<br>
custom category CAT_1) that drupal wants to see POSTed to each of those<br>
pages?<br>
- how much the two answers above depend on drupal version, or will change<br>
in the future?<br>
<br>
Important: I know I can look at all the http headers going back and forth<br>
between browser and drupal, and using this approach I have *already*<br>
written a working draft of the script myself, but I&#39;m looking for a<br>
better, more reliable way to do this. I found that the script won&#39;t work<br>
consistantly, meaning that I&#39;d have to tweak it every time if Drupal<br>
version changes or (usign it on other sites) depending on which modules<br>
are installed.<br>
<br>
So, is there any official documentation which contains complete, reliable<br>
answers to the questions above? In other words, is there a better, more<br>
reliable and future-proof way to get those answers than studying source<br>
code or raw http sessions by trial and error?<br>
<br>
Thank you in advance for any feedback and happy 2009!<br>
<br>
Marco<br>
<br>
-- <br>
Help *everybody* love Free Standards and Software:<br>
<a href="http://digifreedom.net" target="_blank">http://digifreedom.net</a><br>
<br>
</blockquote>
<br>
<br>
<br></div></div>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br>
</blockquote></div><br>