beautypg.com

How a feed client pushes a feed – Google Search Appliance Feeds Protocol Developers Guide User Manual

Page 29

background image

Google Search Appliance: Feeds Protocol Developer’s Guide

29

To adapt this form for your search appliance, replace APPLIANCE-HOSTNAME with the fully qualified
domain name of your search appliance.

Simple form for pushing a feed


Simple form for pushing a feed


action="http://:19900/xmlfeed">

Name of datasource:




(No spaces or non alphanumeric characters)


Type of feed:


Full

Incremental

Metadata and URL


XML file to push:


How a Feed Client Pushes a Feed

When pushing a feed, the feed client sends the POST data to a search appliance. A typical POST from a
scripted feed client appears as follows:

POST /xmlfeed HTTP/1.0
Content-type: multipart/form-data
Content-length: 855
Host: myserver.domain.com:19900
User-agent: Python-urllib/1.15
feedtype=full&datasource=sample&data=%3C%3Fxml+version%3D%221.0%22+encoding%3D%2
2UTF-8%22%3F%3E%0A%3C%21DOCTYPE+gsafeed+SYSTEM+..

The response from the search appliance is as follows:

HTTP/1.0 200 OK
Content-Type: text/plain
Date: Thu, 30 Apr 2009 23:16:10 GMT
Server: feedergate_1.0
Connection: Close
Content-Length: 7

Success