<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Curl up with a good web script</title>
	<atom:link href="http://ecmarchitect.com/archives/2009/04/10/959/feed" rel="self" type="application/rss+xml" />
	<link>http://ecmarchitect.com/archives/2009/04/10/959</link>
	<description>Jeff Potts on ECM, portals, search, collaboration, and a bunch of personal stuff</description>
	<lastBuildDate>Mon, 06 Sep 2010 22:32:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jan Pfitzner</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-54326</link>
		<dc:creator>Jan Pfitzner</dc:creator>
		<pubDate>Wed, 11 Aug 2010 08:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-54326</guid>
		<description>hi,
to refresh surf webscripts in Alfresco 3.3 use (add accept-charset &amp; -language headers):
curl -s -d &quot;reset=on&quot; --header &quot;Accept-Charset:ISO-8859-1,utf-8&quot; --header &quot;Accept-Language:en&quot; -u admin:admin http://localhost:8080/share/service/index

cheers, jan

PS: thanks to mike for his tweet</description>
		<content:encoded><![CDATA[<p>hi,<br />
to refresh surf webscripts in Alfresco 3.3 use (add accept-charset &amp; -language headers):<br />
curl -s -d &#8220;reset=on&#8221; &#8211;header &#8220;Accept-Charset:ISO-8859-1,utf-8&#8243; &#8211;header &#8220;Accept-Language:en&#8221; -u admin:admin <a href="http://localhost:8080/share/service/index" rel="nofollow">http://localhost:8080/share/service/index</a></p>
<p>cheers, jan</p>
<p>PS: thanks to mike for his tweet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpotts</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-52501</link>
		<dc:creator>jpotts</dc:creator>
		<pubDate>Tue, 29 Jun 2010 14:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-52501</guid>
		<description>ecandino,

Make sure you are doing a POST and check your content-type header. To debug further I&#039;d need to see any stack trace that&#039;s showing up in your Alfresco server log.

You might also be interested in my &quot;&lt;a href=&quot;http://ecmarchitect.com/archives/2009/11/23/1094&quot; rel=&quot;nofollow&quot;&gt;Getting Started with CMIS Tutorial&lt;/a&gt;&quot;. And, depending on what you need to do, you might want to take a look at the &lt;a href=&quot;http://incubator.apache.org/chemistry/phpclient.html&quot; rel=&quot;nofollow&quot;&gt;PHP CMIS client&lt;/a&gt; Richard McKnight wrote and recently contributed to Apache Chemistry.

Hope that helps,

Jeff</description>
		<content:encoded><![CDATA[<p>ecandino,</p>
<p>Make sure you are doing a POST and check your content-type header. To debug further I&#8217;d need to see any stack trace that&#8217;s showing up in your Alfresco server log.</p>
<p>You might also be interested in my &#8220;<a href="http://ecmarchitect.com/archives/2009/11/23/1094" rel="nofollow">Getting Started with CMIS Tutorial</a>&#8220;. And, depending on what you need to do, you might want to take a look at the <a href="http://incubator.apache.org/chemistry/phpclient.html" rel="nofollow">PHP CMIS client</a> Richard McKnight wrote and recently contributed to Apache Chemistry.</p>
<p>Hope that helps,</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ecandino</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-52499</link>
		<dc:creator>ecandino</dc:creator>
		<pubDate>Tue, 29 Jun 2010 13:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-52499</guid>
		<description>Jeff,

When I use your command line to create a new object using CMIS ATOM it works perfectly. However I am now attempting to use it in PHP either by shell_exec or libcurl. I seem to be getting the 500- Internal Error each time I do either method. Any advice?</description>
		<content:encoded><![CDATA[<p>Jeff,</p>
<p>When I use your command line to create a new object using CMIS ATOM it works perfectly. However I am now attempting to use it in PHP either by shell_exec or libcurl. I seem to be getting the 500- Internal Error each time I do either method. Any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpotts</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-51184</link>
		<dc:creator>jpotts</dc:creator>
		<pubDate>Sun, 30 May 2010 03:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-51184</guid>
		<description>The only way I know of is to try to use it and check the HTTP response code. I also do not know how to reliably predict (or control) when the ticket will expire. So if you decide to use tickets you need to be in the habit of checking the response code and re-authenticating if the authenticated call fails.

Jeff</description>
		<content:encoded><![CDATA[<p>The only way I know of is to try to use it and check the HTTP response code. I also do not know how to reliably predict (or control) when the ticket will expire. So if you decide to use tickets you need to be in the habit of checking the response code and re-authenticating if the authenticated call fails.</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LouiSe</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-51175</link>
		<dc:creator>LouiSe</dc:creator>
		<pubDate>Sat, 29 May 2010 15:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-51175</guid>
		<description>Hi Bill, just check my Curl based shell script to upload content to Alfresco repository: http://louise.hu/poet/?p=4529 (works with HTTP and HTTPS connections too)</description>
		<content:encoded><![CDATA[<p>Hi Bill, just check my Curl based shell script to upload content to Alfresco repository: <a href="http://louise.hu/poet/?p=4529" rel="nofollow">http://louise.hu/poet/?p=4529</a> (works with HTTP and HTTPS connections too)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snig</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-50823</link>
		<dc:creator>Snig</dc:creator>
		<pubDate>Mon, 17 May 2010 16:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-50823</guid>
		<description>Guys, anybody figured out how to find out whether ticket is expired or not.

You call a web script by http://localhost:8080/alfresco/service/someservice?alf_ticket=xxxxxxxxxxxxxx

It works perfectly when the ticket is valid, but once it is expired, alfresco authentication dialog pops up. Any way to find out whether the ticket is expired?</description>
		<content:encoded><![CDATA[<p>Guys, anybody figured out how to find out whether ticket is expired or not.</p>
<p>You call a web script by <a href="http://localhost:8080/alfresco/service/someservice?alf_ticket=xxxxxxxxxxxxxx" rel="nofollow">http://localhost:8080/alfresco/service/someservice?alf_ticket=xxxxxxxxxxxxxx</a></p>
<p>It works perfectly when the ticket is valid, but once it is expired, alfresco authentication dialog pops up. Any way to find out whether the ticket is expired?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-49401</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 09 Apr 2010 15:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-49401</guid>
		<description>Jeff, 
In your book you do an upload example (starting page 261).  
What I&#039;m trying to do is POST directly (eliminating the GET).
In my situation, I already KNOW the file to be uploaded.  I&#039;ve tried every combination of  curl I can think of with no success.  I always get errors with &#039;formdata&#039; not defined.  Very frustrating.

How can I POST a file directly? (without the user interaction part of the GET).

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Jeff,<br />
In your book you do an upload example (starting page 261).<br />
What I&#8217;m trying to do is POST directly (eliminating the GET).<br />
In my situation, I already KNOW the file to be uploaded.  I&#8217;ve tried every combination of  curl I can think of with no success.  I always get errors with &#8216;formdata&#8217; not defined.  Very frustrating.</p>
<p>How can I POST a file directly? (without the user interaction part of the GET).</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krista</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-49077</link>
		<dc:creator>Krista</dc:creator>
		<pubDate>Thu, 25 Mar 2010 20:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-49077</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpotts</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-49076</link>
		<dc:creator>jpotts</dc:creator>
		<pubDate>Thu, 25 Mar 2010 20:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-49076</guid>
		<description>Yes, but it isn&#039;t as bad as it sounds. When you get the property value of a multi-value property in JavaScript, Alfresco gives it to you as an Array. So if you want to append a new value, you just grab the existing props as an array, append the new value, and then set the property to the updated array.

Jeff</description>
		<content:encoded><![CDATA[<p>Yes, but it isn&#8217;t as bad as it sounds. When you get the property value of a multi-value property in JavaScript, Alfresco gives it to you as an Array. So if you want to append a new value, you just grab the existing props as an array, append the new value, and then set the property to the updated array.</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krista</title>
		<link>http://ecmarchitect.com/archives/2009/04/10/959/comment-page-1#comment-49075</link>
		<dc:creator>Krista</dc:creator>
		<pubDate>Thu, 25 Mar 2010 20:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=959#comment-49075</guid>
		<description>Jeff,

Thank you so much! I really appreciate the help and the quick response. This worked immediately.

One more question - just to verify. Does this mean that if I assign 2 values. Then later I want to add a third I have to read out the existing 2 values, put them in an array with the third, and then assign them?

Thanks!

Krista</description>
		<content:encoded><![CDATA[<p>Jeff,</p>
<p>Thank you so much! I really appreciate the help and the quick response. This worked immediately.</p>
<p>One more question &#8211; just to verify. Does this mean that if I assign 2 values. Then later I want to add a third I have to read out the existing 2 values, put them in an array with the third, and then assign them?</p>
<p>Thanks!</p>
<p>Krista</p>
]]></content:encoded>
	</item>
</channel>
</rss>
