HTTP Post per Telnet: Unterschied zwischen den Versionen

Aus ARTECO Wiki
Zur Navigation springen Zur Suche springen
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
 
== Beispiel für einen HTTP Post per Telnet ==
 
== Beispiel für einen HTTP Post per Telnet ==
  
$ telnet xml.arteco.de 80
+
$ telnet xml.arteco.de 80
<pre>
+
POST /coworkers/99CF4720-A7B6-012C-0591-000D609CCCD8/timekeepings.xml HTTP/1.0  
POST /coworkers/99CF4720-A7B6-012C-0591-000D609CCCD8/timekeepings.xml HTTP/1.0
+
Connection: Close
Connection: Close
+
Content-Type: application/xml
Content-Type: application/xml
+
Authorization: Basic Zm9vOmJhcg==
Authorization: Basic Zm9vOmJhcg==
+
Content-Length: 209
Content-Length: 209
+
 
+
<timekeeping>
<timekeeping>
+
  <event>work_start</event>
<event>work_start</event>
+
  <telematik-timestamp type="datetime">2009-12-14T17:35:42Z</telematik-timestamp>
<telematik-timestamp type="datetime">2009-12-14T17:35:42Z</telematik-timestamp>
+
  <user-timestamp type="datetime">2009-12-14T17:35:42Z</user-timestamp>
<user-timestamp type="datetime">2009-12-14T17:35:42Z</user-timestamp>
+
</timekeeping>
</timekeeping>
 
</pre>
 

Aktuelle Version vom 5. Januar 2010, 20:52 Uhr

Beispiel für einen HTTP Post per Telnet

$ telnet xml.arteco.de 80
POST /coworkers/99CF4720-A7B6-012C-0591-000D609CCCD8/timekeepings.xml HTTP/1.0 
Connection: Close
Content-Type: application/xml
Authorization: Basic Zm9vOmJhcg==
Content-Length: 209

<timekeeping>
 <event>work_start</event>
 <telematik-timestamp type="datetime">2009-12-14T17:35:42Z</telematik-timestamp>
 <user-timestamp type="datetime">2009-12-14T17:35:42Z</user-timestamp>
</timekeeping>