NYCPHP Meetup

NYPHP.org

[nycphp-talk] cURL question

Rahmin Pavlovic rahmin at insite-out.com
Tue Oct 7 14:56:24 EDT 2008


Hi, all:

I'm wondering what the best way to do this is (may not be cURL):

I'm currently building an API to connect to an HTTPS server.  My first  
script POSTs login data as cleartext by way of cURL.  The HTTPS server  
throws a secure cookie back at me, set to expire within 24 hours.  So  
far, so good.

Within that 24 hour period, I'd like a separate script (on the same  
server) to make subsequent requests; passing the authentication along  
such that HTTPS knows who I am.

What's the best way to do that?

Am I trying to re-invent the wheel here?



More information about the talk mailing list