Ticket #504: downupload.txt

File downupload.txt, 2.9 KB (added by vmike@…, 12 years ago)

Communication log for download / upload way data

Line 
1GETTING DATA OF WAY 4767560
2===========================
3
4connect: (www.openstreetmap.org, 80)
5send: 'GET /api/0.4/way/4767560 HTTP/1.1\r\nHost: www.openstreetmap.org\r\nAccept-Encoding: gzip\r\nAuthorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\nUser-Agent: apitester/0.1\r\n\r\n'
6
7reply: 'HTTP/1.1 200 OK\r\n'
8header: Connection: close
9header: Content-Type: text/xml; charset=utf-8
10header: Set-Cookie: _session_id=0d1cf1ac091f584a15e3cf9c5ca69710; path=/
11header: Cache-Control: no-cache
12header: Content-encoding: gzip
13header: Content-Length: 290
14header: Date: Mon, 18 Jun 2007 18:53:19 GMT
15header: Server: lighttpd/1.4.13
16
17Content was compressed:
18
19<?xml version="1.0" encoding="UTF-8"?>
20<osm version="0.4" generator="OpenStreetMap server">
21  <way id="4767560" visible="true" timestamp="2007-06-18T19:50:51+01:00" user="vimico">
22    <seg id="26530124"/>
23    <seg id="26530125"/>
24    <seg id="26530126"/>
25    <seg id="26530127"/>
26    <seg id="26530128"/>
27    <seg id="26530130"/>
28    <tag k="foot" v="yes"/>
29    <tag k="highway" v="secondary"/>
30    <tag k="created_by" v="pyosmeditor"/>
31    <tag k="name" v="Rue de Meuse"/>
32    <tag k="bicycle" v="yes"/>
33    <tag k="motorcar" v="yes"/>
34  </way>
35</osm>
36
37
38UPLOADING WAY 4767560
39=====================
40
41connect: (www.openstreetmap.org, 80)
42send: 'PUT /api/0.4/way/4767560 HTTP/1.1\r\nHost: www.openstreetmap.org\r\nContent-Length: 541\r\nAccept-Encoding: gzip\r\nAuthorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\nUser-Agent: apitester/0.1\r\n\r\n'
43send: '<?xml version="1.0" encoding="UTF-8"?>\n<osm version="0.4" generator="apitester">\n  <way id="4767560" visible="true" timestamp="2007-06-16T23:56:23+01:00" user="vimico">\n    <seg id="26530124"/>\n    <seg id="26530125"/>\n    <seg id="26530126"/>\n    <seg id="26530127"/>\n    <seg id="26530128"/>\n    <seg id="26530130"/>\n    <tag k="name" v="Rue de Meuse"/>\n    <tag k="created_by" v="pyosmeditor"/>\n    <tag k="highway" v="secondary"/>\n    <tag k="foot" v="yes"/>\n    <tag k="motorcar" v="yes"/>\n    <tag k="bicycle" v="yes"/>\n  </way>\n</osm>'
44
45reply: 'HTTP/1.1 500 Internal Server Error\r\n'
46header: Connection: close
47header: Content-Type: text/xml; charset=utf-8
48header: Set-Cookie: _session_id=bfe15a951d8246007c8588863318f5a2; path=/
49header: Cache-Control: no-cache
50header: Content-Length: 309
51header: Date: Mon, 18 Jun 2007 18:50:51 GMT
52header: Server: lighttpd/1.4.13
53
54Uploaded text:
55
56<?xml version="1.0" encoding="UTF-8"?>
57<osm version="0.4" generator="apitester">
58  <way id="4767560" visible="true" timestamp="2007-06-16T23:56:23+01:00" user="vimico">
59    <seg id="26530124"/>
60    <seg id="26530125"/>
61    <seg id="26530126"/>
62    <seg id="26530127"/>
63    <seg id="26530128"/>
64    <seg id="26530130"/>
65    <tag k="name" v="Rue de Meuse"/>
66    <tag k="created_by" v="pyosmeditor"/>
67    <tag k="highway" v="secondary"/>
68    <tag k="foot" v="yes"/>
69    <tag k="motorcar" v="yes"/>
70    <tag k="bicycle" v="yes"/>
71  </way>
72</osm>
73