Return to http://freshlog.com

Thursday, August 6, 2009

[RESOLVED] Basecamp Message creation API seem to bork with HTTPS


Silly me, 37Signals wrote back to say that I need to turn on SSL :)



Intructions



37c96c0a726629a89717396c2434b59a

723dcc6a30ad636e6ab7239abc7f8810

Now you should be able to use Basecamp with HTTPS :)


---------

Set your basecamp address to use http intead of https in the meantime.

I've sent a support ticket to Basecamp, will update as soon as I receive a reply.

Full details below:




POSTing to
https://freshlogdev.basecamphq.com/projects/3539859/posts.xml fails

$ curl -i -u alvin:<password snipped> -X POST -H "Accept:
application/xml" -H "Content-Type: application/xml" -d
"<post><read-by-person-id>4068593</read-by-person-id><milestone-id>10853617</milestone-id><title>ming</title><body>ah</body><attachments><name>w.png</name><file><file>4a7b7ee262a26f41feae97232e84408fe98d5866947435c0</file><content-type>image/png</content-type><original_filename>screenshot.png</original_filename></file></attachments></post>"
https://freshlogdev.basecamphq.com/projects/3539859/posts.xml


HTTP/1.1 302 Found
Date: Fri, 07 Aug 2009 01:10:41 GMT
Server: Apache
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.4
X-Runtime: 7
Cache-Control: no-cache
Location:
http://freshlogdev.basecamphq.com/projects/3539859/posts.xml
Status: 302
Content-Type: text/html; charset=utf-8
Set-Cookie:
_basecamp_session=BAh7BjoPc2Vzc2lvbl9pZCIlOTllNjhlMGU4ZWMzNDBlOTkxOWJkYTQyNDg1MWM4MWY%3D--5b88451e8eace685b6fa245e68110a564222db73;
path=/; HttpOnly
Via: 1.1 basecamp.basecamphq.com
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

<html><body>You are being <a
href="http://freshlogdev.basecamphq.com/projects/3539859/posts.xml">redirected</a>.</body></html>


------

While POSTing to
http://freshlogdev.basecamphq.com/projects/3539859/posts.xml works


$ curl -i -u alvin:<password snipped> -X POST -H "Accept:
application/xml" -H "Content-Type: application/xml" -d
"<post><read-by-person-id>4068593</read-by-person-id><milestone-id>10853617</milestone-id><title>ming</title><body>ah</body><attachments><name>w.png</name><file><file>4a7b7ee262a26f41feae97232e84408fe98d5866947435c0</file><content-type>image/png</content-type><original_filename>screenshot.png</original_filename></file></attachments></post>"
http://freshlogdev.basecamphq.com/projects/3539859/posts.xml


HTTP/1.1 201 Created
Date: Fri, 07 Aug 2009 01:10:46 GMT
Server: Apache
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.4
X-Runtime: 1165
Cache-Control: no-cache
Location: /posts/24361328.xml
Status: 201
Content-Type: application/xml; charset=utf-8
Set-Cookie:
_basecamp_session=BAh7BzoPc2Vzc2lvbl9pZCIlODAxN2I5OWU3NGY4Y2FlZWM0ZmQwZTRhOGJlZjFiMTAiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7BiIKYWxlcnQiSk5vIG5vdGlmaWNhdGlvbiB3YXMgc2VudCAodW5kZWZpbmVkIG1ldGhvZCBgZW1wdHk%2FJyBmb3IgbmlsOk5pbENsYXNzKQY6CkB1c2VkewZACUY%3D--665270e672ab4ce41df9fe52e808bb5ba9a65e71;
path=/; HttpOnly
Via: 1.1 basecamp.basecamphq.com
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked


0 comments:

Post a Comment