M. wants to shove content into a remote Drupal site from his desktop.<br>So he wants to know the minimum to install in terms of a script which bootstraps Drupal and uses curl to get the content and node_save to save it to the remote URL.<br>
I think this might be better served by running an XMLRPC or other server (see services module), then you can use anything you like to speak the same protocol.<br><br>Victor Kane<br><a href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br>
<br><div class="gmail_quote">On Thu, Feb 19, 2009 at 9:04 AM, Cog Rusty <span dir="ltr"><<a href="mailto:cog.rusty@gmail.com">cog.rusty@gmail.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;">
<div><div></div><div class="Wj3C7c">On Thu, Feb 19, 2009 at 11:47 AM, M. Fioretti <<a href="mailto:mfioretti@nexaima.net">mfioretti@nexaima.net</a>> wrote:<br>
> Greetings,<br>
><br>
> sorry if I couldn't answer earlier to all the feedback that came in<br>
> the original thread a couple weeks ago.<br>
><br>
> It looks like several things I wrote were simply ignored by some<br>
> posters. I'm going to shortly sum them up again, and then ask one<br>
> (last, I promise) related question.<br>
><br>
> Quoting from several posts of the original thread:<br>
><br>
>> Quite frankly, shell + curl are not an adequate tool for the job,<br>
>> unless you grok awk and sed really well.<br>
>> ...<br>
>> You will likely also need to have a cookie<br>
>> ....<br>
>> View Source. Search '<form' . You'll see everything that needs to be<br>
>> post'ed for a given form.<br>
>> ...<br>
>> Everything in drupal is processed through index.php, so you don't<br>
>> need a sequence of URLs for your post'ing either.<br>
><br>
> IIRC, I had already made clear, before getting these answers, that:<br>
><br>
> - I'm already much more expert in awk/sed/bash/perl coding than with<br>
> PHP, so a non-php solution is much more time-efficient for me, if at<br>
> all possible. Not to mention that those tools/languages give, in the<br>
> real world of desktop/usb key linux distros, more guarantees to work<br>
> out of the box without tweaking or installing extra-packages than<br>
> anything requiring php.<br>
><br>
> - I know very well what HTML forms and HTTP cookies are, and have<br>
> already done this with non-drupal websites. And the URLs you see in<br>
> the browser when you add content by hand are NOT "index.php + some<br>
> parameters"<br>
><br>
> - (almost) the only solution I am interested into is how to add new<br>
> content remotely, when I cannot alter in any way the configuration<br>
> of the server where Drupal runs.<br>
><br>
> I'm not rewriting all this to start a fight, really, just to clarify<br>
> why I asked what I asked and what I already know, that is to save your<br>
> time.<br>
><br>
> This said, I do understand all the points about Drupal being more<br>
> interested in offering a flexible API than in supporting this kind of<br>
> things. So, I will now go back to my desk and put together, by myself,<br>
> my custom shell+curl hack based on the one posted here by Martin<br>
> Stadler (thanks, Martin!). However, let me ask you this:<br>
><br>
> If you already said it, I do confess I didn't recognize it: what is<br>
> the smallest possible set of Drupal(related) Php **files or<br>
> libraries** that I should install on a Linux *desktop* without HTTP<br>
> server but with a working PHP-CLI interpreter, to put together a PHP<br>
> script which can log into a remote Drupal site and add nodes?<br>
<br>
<br>
</div></div>Maybe I lost some part of this discussion, but I wonder: Why would you<br>
need any kind of server or PHP on your desktop to work with a remote<br>
Drupal web site? And how could a web site respond to requests from any<br>
of those? Are you talking about putting together a CLI web browser?<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
> Thanks,<br>
> M.<br>
><br>
> --<br>
> Your own civil rights and the quality of your life heavily depend on how<br>
> software is used *around* you: <a href="http://digifreedom.net/node/84" target="_blank">http://digifreedom.net/node/84</a><br>
><br>
</div></div></blockquote></div><br>