Sending cookies.

S

Shef

Can anyone show me how to send cookies with httparty?

I tried sending them as part of the header in the options hash:

options = { :body => posting_string, :header => {:cookie => cookie} }

but that got me no where. The cookie looks like this:

"user=Alex+Porter; expires=Thu, 12-Aug-2010 16:48:27 GMT"

But I just peal it back to:

"user=Alex+Porter"

I'm not sure what I'm doing wrong. Can anyone set me right?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top