Oops, seems the log stuff I put in the post didn't make it through intact. Here is another try:
* About to connect() to localhost port 8181 (#0)
* Trying ::1... Connection refused
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8181 (#0)
* successfully set certificate verify locations:
* CAfile: /usr/share/curl/curl-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: /C=US/ST=California/L=Santa Clara/O=Sun Microsystems/OU=Sun GlassFish Enterprise Server/CN=mbpro.office.median.is
* start date: 2009-08-20 11:26:24 GMT
* expire date: 2019-08-18 11:26:24 GMT
* common name: mbpro.office.median.is (does not match 'localhost')
* issuer: /C=US/ST=California/L=Santa Clara/O=Sun Microsystems/OU=Sun GlassFish Enterprise Server/CN=mbpro.office.median.is
* SSL certificate verify result: self signed certificate (18), continuing anyway.
* Server auth using Basic with user 'baglx'
PUT /rest/tpos/incoming/ba/GoodFile.xml HTTP/1.1
Authorization: Basic YmFnbHg6YXNkZjEyMw==
User-Agent: curl/7.16.3 (powerpc-apple-darwin8.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
Host: localhost:8181
Accept: */*
Content-Type: application/xml
Content-Length: 46213
Expect: 100-continue
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Content-Type: text/html
Content-Language:
Content-Length: 1341
Date: Thu, 20 Aug 2009 11:35:07 GMT
Connection: close
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
[Message sent by forum member 'hordurth' (hordurth)]
http://forums.java.net/jive/thread.jspa?messageID=361579