我正在尝试使用 Mule Studio 提取 RSS 提要。我可以使用 RSS 馈送器和 CURL 在浏览器中查看此提要,但我无法使用 Mule 应用程序进行查看。此 Mule 应用程序可与其他 RSS 提要一起使用,因此我不明白为什么我会收到此提要的 403 Forbidden 错误。
这是我的 Mule 流 XML
<http:polling-connector name="PollingHttpConnector" pollingFrequency="60000" doc:name="HTTP Polling" clientSoTimeout="10000" cookieSpec="netscape" receiveBacklog="0" receiveBufferSize="0" sendBufferSize="0" serverSoTimeout="10000" socketSoLinger="0" validateConnections="true"/>
<flow name="mondavi" doc:name="mondavi">
<http:inbound-endpoint exchange-pattern="one-way" doc:name=" " address="http://www.theaggie.org/feed/" connector-ref="PollingHttpConnector" encoding="UTF-8"/>
<logger message=" #[header:INBOUND:http.version] #[header:INBOUND:http.method] #[header:INBOUND:http.request] " level="INFO" category="mule.http.accesslog" doc:name="Logger"/>
<component class="edu.ucdavis.edustream.esb.news.rss.OrigFeedSplitter" doc:name="Java"/>
<foreach doc:name="For Each">
<component class="edu.ucdavis.edustream.esb.news.rss.EntryReceiver" doc:name="Java"/>
<logger level="INFO" doc:name="Logger"/>
<http:outbound-endpoint exchange-pattern="request-response" host="${edus.host}" port="${edus.port}" path="api/v1/activity" method="POST" mimeType="application/json" doc:name="HTTP"/>
</foreach>
</flow>
这是成功 CURL 请求的响应,仅请求标头:
HTTP/1.1 200 OK
Date: Fri, 12 Jul 2013 19:06:51 GMT
Server: Apache
Set-Cookie: PHPSESSID=l0eg8e93ihb3r65plms64l84f7; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://www.theaggie.org/xmlrpc.php
Last-Modified: Fri, 12 Jul 2013 03:37:00 GMT
ETag: "556af474b6fdedb235c46e19926f69db"
Content-Type: text/html; charset=UTF-8