limweb / sabreamf

Automatically exported from code.google.com/p/sabreamf
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Allow to pass arbitrary cookies on Curl request (for session handling) #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to be able to keep the session between multiple requests to a 
AMF gateway.

For example it is possible to connect to the Drupal Services amfphp server and 
stay logged in based on session cookies. You just call system.connect and 
user.login and further on you don't need to provide any credentials in your AMF 
messages. SabreAMF however does not have the possibility to set cookies when it 
makes its request with CuRL, so it's very cumbersome to debug Drupal AMFPHP 
services with it atm. Also see the related comments on the wiki: 
http://code.google.com/p/sabreamf/wiki/Authentication

Original issue reported on code.google.com by kristof.coomans on 16 Jun 2010 at 5:34

GoogleCodeExporter commented 9 years ago
Ideally it should probably be possible to allow users to specify their own curl 
object.
That way it's possible to make any modifications to the object and make the 
request yourself.

No idea when I would get around to do this. I'm planning a namespace based 
SabreDAV 2.0, but no timelines yet.

Original comment by evert...@gmail.com on 16 Jun 2010 at 6:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi.
I have modified the class SabreAMF_Client so you can make multiple calls within 
one session. But the methods "addHeader" and "setEncoding" are inconsistent... 
Attached is the code

Original comment by ccastell...@gmail.com on 29 Oct 2010 at 2:50

Attachments: