Now that we are past the basic demo (i.e., using an HTML UI instead
of cURL). Here is a cURL dump demonstrating how I copied a simple
turtle doc (one triple) between data spaces (the "test.ttl" is
WebDAV mounted from my ODS data space).
Dump (which is based on the use of my client cert which includes my
WebID):
curl --verbose --cert client_cert.pem --key key.pem -k -H
"content-type: text/turtle" -T test.ttl
"https://kidehen.rww.io/Linked%20Data%20Documents/"
* About to connect() to
kidehen.rww.io port 443
* Trying 92.243.6.190... connected
* Connected to
kidehen.rww.io (92.243.6.190) port 443
Enter PEM pass phrase:
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* subject: /OU=Domain Control Validated/OU=Gandi Standard
SSL/CN=
my-profile.eu
* start date: 2013-03-05 00:00:00 GMT
* expire date: 2014-04-03 23:59:59 GMT
* common name:
my-profile.eu (does not match '
kidehen.rww.io')
* issuer: /C=FR/O=GANDI SAS/CN=Gandi Standard SSL CA
* SSL certificate verify ok.
> PUT /Linked%20Data%20Documents/test%2Ettl HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu)
libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host:
kidehen.rww.io
> Accept: */*
> content-type: text/turtle
> Content-Length: 46
> Expect: 100-continue
>
* SSLv3, TLS handshake, Hello request (0):
SSLv3, TLS handshake, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Request CERT (13):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS handshake, CERT verify (15):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Date: Mon, 05 Aug 2013 20:10:00 GMT
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: PHP/5.3.10-1ubuntu3.7
< Set-Cookie: SID=2li8kutqk4galk7q79v8ea2qq7; expires=Sat,
04-Aug-2018 20:10:01 GMT; path=/; domain=.
rww.io
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: showMetaFiles=1; expires=Mon, 05-Aug-2013 21:10:06
GMT
< User:
http://kingsley.idehen.net/dataspace/person/kidehen#this
< Filename: /www/
rww.io/data/kidehen.rww.io/Linked Data
Documents/test.ttl
< MS-Author-Via: DAV, SPARQL
< Triples: 1
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host
kidehen.rww.io left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
Here's the MKCOL dump:
curl --verbose --cert client_cert.pem --key key.pem -k -X MKCOL
"https://kidehen.rww.io/Linked%20Data%20Documents/mkcol-test"
* About to connect() to
kidehen.rww.io port 443
* Trying 92.243.6.190... connected
* Connected to
kidehen.rww.io (92.243.6.190) port 443
Enter PEM pass phrase:
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* subject: /OU=Domain Control Validated/OU=Gandi Standard
SSL/CN=
my-profile.eu
* start date: 2013-03-05 00:00:00 GMT
* expire date: 2014-04-03 23:59:59 GMT
* common name:
my-profile.eu (does not match '
kidehen.rww.io')
* issuer: /C=FR/O=GANDI SAS/CN=Gandi Standard SSL CA
* SSL certificate verify ok.
> MKCOL /Linked%20Data%20Documents/mkcol-test HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu)
libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host:
kidehen.rww.io
> Accept: */*
>
* SSLv3, TLS handshake, Hello request (0):
SSLv3, TLS handshake, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Request CERT (13):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS handshake, CERT verify (15):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
HTTP/1.1 200 OK
< Date: Mon, 05 Aug 2013 20:35:31 GMT
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: PHP/5.3.10-1ubuntu3.7
< Set-Cookie: SID=t68gne1eg5139kr17k7u8nknh3; expires=Sat,
04-Aug-2018 20:35:31 GMT; path=/; domain=.
rww.io
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: showMetaFiles=1; expires=Mon, 05-Aug-2013 21:35:37
GMT
< User:
http://kingsley.idehen.net/dataspace/person/kidehen#this
< Filename: /www/
rww.io/data/kidehen.rww.io/Linked Data
Documents/mkcol-test
< MS-Author-Via: DAV, SPARQL
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host
kidehen.rww.io left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
[root@idehen opt]# curl --verbose --cert client_cert.pem --key
key.pem -k -X MKCOL
"https://kidehen.rww.io/Linked%20Data%20Documents/mkcol-test"
* About to connect() to
kidehen.rww.io port 443
* Trying 92.243.6.190... connected
* Connected to
kidehen.rww.io (92.243.6.190) port 443
Enter PEM pass phrase:
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* subject: /OU=Domain Control Validated/OU=Gandi Standard
SSL/CN=
my-profile.eu
* start date: 2013-03-05 00:00:00 GMT
* expire date: 2014-04-03 23:59:59 GMT
* common name:
my-profile.eu (does not match '
kidehen.rww.io')
* issuer: /C=FR/O=GANDI SAS/CN=Gandi Standard SSL CA
* SSL certificate verify ok.
> MKCOL /Linked%20Data%20Documents/mkcol-test HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu)
libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host:
kidehen.rww.io
> Accept: */*
>
* SSLv3, TLS handshake, Hello request (0):
SSLv3, TLS handshake, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Request CERT (13):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS handshake, CERT verify (15):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
HTTP/1.1 200 OK
< Date: Mon, 05 Aug 2013 20:37:31 GMT
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: PHP/5.3.10-1ubuntu3.7
< Set-Cookie: SID=k5r4o6e4095p29rog4qun6gah7; expires=Sat,
04-Aug-2018 20:37:32 GMT; path=/; domain=.
rww.io
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: showMetaFiles=1; expires=Mon, 05-Aug-2013 21:37:37
GMT
< User:
http://kingsley.idehen.net/dataspace/person/kidehen#this
< Filename: /www/
rww.io/data/kidehen.rww.io/Linked Data
Documents/mkcol-test
< MS-Author-Via: DAV, SPARQL
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host
kidehen.rww.io left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):