<?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: A curl-ier Curb &#8211; better cookie support in Curb</title>
	<atom:link href="http://blog.codefront.net/2009/06/18/better-cookie-support-in-curb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codefront.net/2009/06/18/better-cookie-support-in-curb/</link>
	<description>Rails, Firefox, Anime, Mac</description>
	<lastBuildDate>Thu, 18 Mar 2010 03:29:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Thufir</title>
		<link>http://blog.codefront.net/2009/06/18/better-cookie-support-in-curb/comment-page-1/#comment-735051</link>
		<dc:creator>Thufir</dc:creator>
		<pubDate>Mon, 01 Feb 2010 01:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/?p=1144#comment-735051</guid>
		<description>how do you create a cookie as:



You then have to add yourself a cookie (well, it look like Google doesn&#039;t add it itself) with the following properties :
name 	SID
domain 	.google.com
path 	/
expires 	1600000000

http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI


in your example, only the name is set.</description>
		<content:encoded><![CDATA[<p>how do you create a cookie as:</p>
<p>You then have to add yourself a cookie (well, it look like Google doesn&#8217;t add it itself) with the following properties :<br />
name 	SID<br />
domain 	.google.com<br />
path 	/<br />
expires 	1600000000</p>
<p><a href="http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI" rel="nofollow">http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI</a></p>
<p>in your example, only the name is set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chu Yeow</title>
		<link>http://blog.codefront.net/2009/06/18/better-cookie-support-in-curb/comment-page-1/#comment-728604</link>
		<dc:creator>Chu Yeow</dc:creator>
		<pubDate>Tue, 18 Aug 2009 01:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/?p=1144#comment-728604</guid>
		<description>@Waseem here&#039;s an example (I actually use something like this in an app):

&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;curl = Curl::Easy.new(&#039;http://example.com/login&#039;)

# Extract cookies in response.
cookies = []
curl.on_header { &#124;header&#124;

  # Parse cookies from the headers (yes, this is a naive implementation but it&#039;s fast).
  cookies &lt;&lt; &quot;#{$1}=#{$2}&quot; if header =~ /^Set-Cookie: ([^=])=([^;]+;)/

  header.length
}

# POST to login.
curl.http_post(
  Curl::PostField.content(&#039;username&#039;, &#039;foo&#039;),
  Curl::PostField.content(&#039;password&#039;, &#039;bar&#039;)
)

# Reset the on_header handler.
curl.on_header

# Now you can use the auth cookies in future requests.
curl = Curl::Easy.new(&#039;http://example.com/private/page&#039;)
curl.cookies = cookies
curl.perform
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Waseem here&#8217;s an example (I actually use something like this in an app):</p>
<pre><code class="ruby">curl = Curl::Easy.new('http://example.com/login')

# Extract cookies in response.
cookies = []
curl.on_header { |header|

  # Parse cookies from the headers (yes, this is a naive implementation but it's fast).
  cookies &lt;&lt; &quot;#{$1}=#{$2}&quot; if header =~ /^Set-Cookie: ([^=])=([^;]+;)/

  header.length
}

# POST to login.
curl.http_post(
  Curl::PostField.content(&#039;username&#039;, &#039;foo&#039;),
  Curl::PostField.content(&#039;password&#039;, &#039;bar&#039;)
)

# Reset the on_header handler.
curl.on_header

# Now you can use the auth cookies in future requests.
curl = Curl::Easy.new('http://example.com/private/page')
curl.cookies = cookies
curl.perform
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waseem</title>
		<link>http://blog.codefront.net/2009/06/18/better-cookie-support-in-curb/comment-page-1/#comment-728586</link>
		<dc:creator>Waseem</dc:creator>
		<pubDate>Mon, 17 Aug 2009 14:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/?p=1144#comment-728586</guid>
		<description>That is awesome change to curb. Would you please supply some example as how to use this feature of curb? How to authenticate in a cookie-based authentication system?</description>
		<content:encoded><![CDATA[<p>That is awesome change to curb. Would you please supply some example as how to use this feature of curb? How to authenticate in a cookie-based authentication system?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
