Hey Cobb,

Your subscriber is returning the hub.challenge string wrapped in an HTML
body. It should be *just* the challenge string and nothing more. I'm on the
bus now but will look further if that isn't it!

-Brett

On Sep 30, 2009 7:36 AM, "c.cobb" <[email protected]> wrote:


Details, details...

Subscribing via http://pubsubhubbub.appspot.com/subscribe

Callback:  http://ccobb.net/cgi-bin/test/test.pl
Feed URL:  http://ccobb.net/blahblahblog/?feed=rss2
Verify:  Synchronous
Mode:  Subscribe

When the Callback URL receives the verification request, it returns
the hub.challenge parameter in the response body along with a success
response code.

For example, receiving this request:

hub.challenge=Awoz721VyuJlc8OdiEGH48u-00KeLdbZDU90UPWRQNoKzUVBIOIBvoFodZ7xqLRl-
cSGiqVGKl1jUZebV5Ajt_8k5dX3SLtPAAPIHJokW8pgzdDb1f6Fzz4fW4y5dhJj&hub.topic=http
%3A%2F%2Fccobb.net%2Fblahblahblog%2F%3Ffeed
%3Drss2&hub.mode=subscribe&hub.lease_seconds=2592000
HubTopic: http://ccobb.net/blahblahblog/?feed=rss2
Response:
Awoz721VyuJlc8OdiEGH48u-00KeLdbZDU90UPWRQNoKzUVBIOIBvoFodZ7xqLRl-
cSGiqVGKl1jUZebV5Ajt_8k5dX3SLtPAAPIHJokW8pgzdDb1f6Fzz4fW4y5dhJj

Returns this document with a status of 200:

<!DOCTYPE html
       PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-
US">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
</head>
<body>
Awoz721VyuJlc8OdiEGH48u-00KeLdbZDU90UPWRQNoKzUVBIOIBvoFodZ7xqLRl-
cSGiqVGKl1jUZebV5Ajt_8k5dX3SLtPAAPIHJokW8pgzdDb1f6Fzz4fW4y5dhJj
</body>
</html>



Publishing via http://pubsubhubbub.appspot.com/publish

Testing PuSH with two different WordPress feeds, excerpted here. One
has a <channel> and one has a <feed> but neither of these contains an
<atom:feed> tag...is this a showstopper?

1) http://ccobb.net/blahblahblog/?feed=rss2

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
  xmlns="http://www.w3.org/2005/Atom"; .... >
<channel>
  <title>The Blah Blah Blog</title>
  <atom:link href="http://ccobb.net/blahblahblog/?feed=rss2";
rel="self" type="application/rss+xml" />
  <link>http://ccobb.net/blahblahblog</link>
  <description>Welcome to our little paradise</description>
  <lastBuildDate>Thu, 17 Sep 2009 21:19:49 +0000</lastBuildDate>
  <generator>http://wordpress.org/?v=2.8.4</generator>
  <language>en</language>
  <sy:updatePeriod>hourly</sy:updatePeriod>
  <sy:updateFrequency>1</sy:updateFrequency>
  <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/
><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>
     .....
</channel>
</rss>

2) http://ccobb.net/blahblahblog/?feed=atom

<?xml version="1.0" encoding="UTF-8"?>
<feed .... >
  ....
  <link rel="alternate" type="text/html" href="http://ccobb.net/
blahblahblog" />
  <id>http://ccobb.net/blahblahblog/?feed=atom</id>
  <link rel="self" type="application/atom+xml" href="http://ccobb.net/
blahblahblog/?feed=atom" />
  <link rel="hub" href="http://pubsubhubbub.appspot.com"; /><link
rel="hub" href="http://superfeedr.com/hubbub"; />
  ....
</feed>

Reply via email to