Making GET requests to Atom feeds or collections
A web client can obtain a list of the existing Atom entries in an Atom feed or collection by making an HTTP GET request to the URL of the collection, or obtain an individual Atom entry from the Atom feed or collection by making an HTTP GET request to the URL of the Atom entry.
Before you begin
Procedure
Example
This HTTP request is for an Atom collection with the URL
http://www.example.com:80/web20/myfeed :GET /web20/myfeed HTTP/1.1
Host: www.example.com:80This HTTP request is for
an Atom entry with the URL
http://www.example.com:80/web20/entry/7:GET /web20/entry/7 HTTP/1.1
Host: www.example.com:80This example HTTP response
shows an Atom document that CICS sends in response to the request
for a single Atom entry. The example shows only the HTTP headers that
are of interest for Atom feeds; further HTTP headers might be present
in the response. The ETag header for the HTTP response gives the entity
tag for the Atom entry, which you must use in the If-Match header
if you make a PUT request to edit the entry.
HTTP/1.1 200 OK
Content-Type: application/atom+xml
Content-Length: 1005
ETag: c4826af12991fb102ef13099c927c2ac24e4caa2
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app">
<generator uri="https://www.ibm.com/cics/" version="6.6.0">
CICS Transaction Server Version 4.1.0
</generator>
<link rel="self" href="http://www.example.com:80/web20/entry/7"/>
<link rel="edit" href="http://www.example.com:80/web20/entry/7"/>
<id>tag:http://www.example.com/web20/myfeed,2009-01-20:tsqueue:WB20TSQ:7</id>
<title>This is entry 7</title>
<summary>
Entry 7 is about something to do with feeds...
</summary>
<category term="Test Feeds"/>
<rights>Copyright (c) 2009, Joe Bloggs</rights>
<published>2008-12-02T15:41:00</published>
<author>
<name>Joe Bloggs</name>
<email>JBloggs@example.com</email>
<uri>http://www.example.com/JBloggs/</uri>
</author>
<contributor>
<name>John Doe</name>
</contributor>
<app:edited>2009-02-02T16:29:36+00:00</app:edited>
<updated>2009-02-02T16:29:36+00:00</updated>
<content type="text/xml">
<SAMPBIND xmlns="https://www.ibm.com/xmlns/prod/cics/atom/bindfile/sampbind">
<data_field>
Here is some content for entry 7
</data_field>
</SAMPBIND >
</content>
</entry>This example HTTP response shows an Atom document that CICS sends in response to the request for a list of Atom entries from the Atom collection. Again, the example shows only the HTTP headers that are of interest for Atom feeds; further HTTP headers might be present in the response.
HTTP/1.1 200 OK
Content-Type: application/atom+xml
Content-Length: 8661
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app">
<generator uri="https://www.ibm.com/cics/" version="6.6.0">
CICS Transaction Server Version 4.1.0
</generator>
<link rel="self" href="http://www.example.com:80/web20/myfeed"/>
<link rel="edit" href="http://www.example.com:80/web20/myfeed"/>
<id>tag:http://www.example.com/web20/myfeed,2009-01-20:tsqueue:WB20TSQ</id>
<title type="text">CICS ATOM FEED TITLE</title>
<subtitle>CICS ATOM FEED SUBTITLE</subtitle>
<rights>Copyright (c) 2009, Joe Bloggs</rights>
<category term="my-first-feed"/>
<author>
<name>Joe Bloggs</name>
<email>JBloggs@example.com</email>
<uri>http://www.example.com/JBloggs/</uri>
</author>
<contributor>
<name>John Doe</name>
</contributor>
<!--*****************************************************************-->
<entry>
<link rel="self" href="http://www.example.com:80/web20/entry/9"/>
<link rel="edit" href="http://www.example.com:80/web20/entry/9"/>
<id>tag:http://www.example.com/web20/myfeed,2009-01-20:tsqueue:WB20TSQ:9</id>
<title>This is entry 9</title>
<summary>
Entry 9 is about something to do with feeds...
</summary>
<category term="Test Feeds"/>
<rights>Copyright (c) 2009, Joe Bloggs</rights>
<published>2008-12-02T15:41:00</published>
<author>
<name>Joe Bloggs</name>
<email>JBloggs@example.com</email>
<uri>http://www.example.com/JBloggs/</uri>
</author>
<contributor>
<name>John Doe</name>
</contributor>
<app:edited>2009-02-02T16:29:36+00:00</app:edited>
<updated>2009-02-02T16:29:36+00:00</updated>
<content type="text/xml">
<SAMPBIND xmlns="https://www.ibm.com/xmlns/prod/cics/atom/bindfile/sampbind">
<data_field>
Here is some content for entry 9
</data_field>
</SAMPBIND >
</content>
</entry>
<!--*****************************************************************-->
<entry>
<link rel="self" href="http://www.example.com:80/web20/entry/8"/>
<link rel="edit" href="http://www.example.com:80/web20/entry/8"/>
<id>tag:http://www.example.com/web20/myfeed,2009-01-20:tsqueue:WB20TSQ:8</id>
<title>This is entry 8</title>
<summary>
Entry 8 is about something to do with feeds...
</summary>
<category term="Test Feeds"/>
<rights>Copyright (c) 2009, Joe Bloggs</rights>
<published>2008-12-02T15:41:00</published>
<author>
<name>Joe Bloggs</name>
<email>JBloggs@example.com</email>
<uri>http://www.example.com/JBloggs/</uri>
</author>
<contributor>
<name>John Doe</name>
</contributor>
<app:edited>2009-02-02T16:29:36+00:00</app:edited>
<updated>2009-02-02T16:29:36+00:00</updated>
<content type="text/xml">
<SAMPBIND xmlns="https://www.ibm.com/xmlns/prod/cics/atom/bindfile/sampbind">
<data_field>
Here is some content for entry 8
</data_field>
</SAMPBIND >
</content>
</entry>
<!--*****************************************************************-->
<entry>
<link rel="self" href="http://www.example.com:80/web20/entry/7"/>
<link rel="edit" href="http://www.example.com:80/web20/entry/7"/>
<id>tag:http://www.example.com/web20/myfeed,2009-01-20:tsqueue:WB20TSQ:7</id>
<title>This is entry 7</title>
<summary>
Entry 7 is about something to do with feeds...
</summary>
<category term="Test Feeds"/>
<rights>Copyright (c) 2009, Joe Bloggs</rights>
<published>2008-12-02T15:41:00</published>
<author>
<name>Joe Bloggs</name>
<email>JBloggs@example.com</email>
<uri>http://www.example.com/JBloggs/</uri>
</author>
<contributor>
<name>John Doe</name>
</contributor>
<app:edited>2009-02-02T16:29:36+00:00</app:edited>
<updated>2009-02-02T16:29:36+00:00</updated>
<content type="text/xml">
<SAMPBIND xmlns="https://www.ibm.com/xmlns/prod/cics/atom/bindfile/sampbind">
<data_field>
Here is some content for entry 7
</data_field>
</SAMPBIND >
</content>
</entry>
<!--*****************************************************************-->
<entry>
<link rel="self" href="http://www.example.com:80/web20/entry/6"/>
<link rel="edit" href="http://www.example.com:80/web20/entry/6"/>
<id>tag:http://www.example.com/web20/myfeed,2009-01-20:tsqueue:WB20TSQ:6</id>
<title>This is entry 6</title>
<summary>
Entry 6 is about something to do with feeds...
</summary>
<category term="Test Feeds"/>
<rights>Copyright (c) 2009, Joe Bloggs</rights>
<published>2008-12-02T15:41:00</published>
<author>
<name>Joe Bloggs</name>
<email>JBloggs@example.com</email>
<uri>http://www.example.com/JBloggs/</uri>
</author>
<contributor>
<name>John Doe</name>
</contributor>
<app:edited>2009-02-02T16:29:36+00:00</app:edited>
<updated>2009-02-02T16:29:36+00:00</updated>
<content type="text/xml">
<SAMPBIND xmlns="https://www.ibm.com/xmlns/prod/cics/atom/bindfile/sampbind">
<data_field>
Here is some content for entry 6
</data_field>
</SAMPBIND >
</content>
</entry>
</feed>