以下是 XML/RSS 提要文件:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:georss="http://www.georss.org/georss">
<channel>
...
<item>
...
</item>
<item>
...
</item>
</channel>
</rss>
如果我想使用套接字获取文件,例如:
Socket socket = new Socket(/* THE SITE*/ , 80);
OutputStream os = socket.getOutputStream();
OutputStreamWritter osw = new OutputStreamWritter(os);
BufferedWriter bw = new BufferWriter(osw);
bw.write("HEADER OF THE SITE");
我应该使用什么标题?