A. Yes, this is what the header stream is for. Reading the
documentation might be helpful... :)
B. This looks like a session cookie. You generally don't need to send
it explicitly, you just return what the server gave to you. Again,
it's all in the docs, including examples on how a cookie jar is used
in such a case.
On Thu, Feb 9, 2012 at 10:32 PM, Michael Minerva
<minerva(a)agentsheets.com> wrote:
> I'm sorry if my question is unclear but I just started using Drakma today and I am not very experienced with http-requests in general.
>
> I am trying to create an http-request that looks something like this:
>
> POST /?q=node/create HTTP/1.1
> Host: localhost:8888
> Cookie: SESSdc0685ed01f285dab628a3700259e6bc=rCfmWLUeugRQNAQTs14yox_DWqZyGE2fYUS8W24j4co
> Content-Length: 0
> Content-Type: application/x-www-form-urlencoded
>
> I tried doing this with a cookie-jar and a cookie but the make-instance of cookie required parameters such as name which I do not have (and did not need when I made the http-request by other means). I wanted to see the actual http-post that was being created so I could compare it to other successful http-posts and try and find my problem (is this what header-stream might help with)?
>
> --Mike
> On Feb 9, 2012, at 2:09 PM, Edi Weitz wrote:
>
>> You know about this, don't you?
>>
>> http://weitz.de/drakma/#*header-stream*
>>
>> Otherwise, I don't really understand your question. Perhaps you could
>> tell us what exactly you tried, what happened, and what you expected
>> to happen.
>>
>> Cheers,
>> Edi.
>>
>>
>> On Thu, Feb 9, 2012 at 9:41 PM, Michael Minerva <minerva(a)agentsheets.com> wrote:
>>> I just started using drakma today and so far it seems really great but I had a couple quesitons.
>>>
>>> First, is it possible to send a simpler for example i want my http-post to have something like this:
>>>
>>> Cookie: SESSdc0685ed01f285dab628a3700259e6bc=rCfmWLUeugRQNAQTs14yox_DWqZyGE2fYUS8W24j4co
>>>
>>> I tried making a drakma cookie and adding it to a cookie-jar but none of that seemed to work.
>>>
>>> Also, is there a way to print the actual post I am sending so I can see what might be wrong with it?
>>>
>>> Thanks a lot,
>>>
>>> --Mike
>>>
>>>
>>> _______________________________________________
>>> drakma-devel mailing list
>>> drakma-devel(a)common-lisp.net
>>> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
>>
>> _______________________________________________
>> drakma-devel mailing list
>> drakma-devel(a)common-lisp.net
>> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
>>
>