am I using cURL right here?
It takes 16 secs to perform this hahhaa so I guess i'm doing something wrong??
I'm doing this all in one script btw;
I use curl to log in and get a session --- then I use curl to post back with the session to an API to get the data I want.
It works, but am I using curl correctly here?
This is what I am doing in PHP:
Start curl to go get session data
start curl again, this time posting back with session to get the data I want
round trip 16 secs I can't be right
Dude enough of the hahaha'ing... it's code.. whats funny about it? :confused:
Only thing I'll suggest is that you don't bother closing curl between requests. Just change the parameters and then trigger it again using exec()
Love your sig btw.. what you can do for others is use the [php] tags in your future posts :thumbsup: :D
LT (not Dude)
Unfortunately code will take as long as it takes. Given that you've only shown a few lines of curl code and comments in between rather than pasting the entire affected code there isn't anything that any of us can suggest really other than not closing the curl handle between them.
Give that a go, if it works thats your problem. If it doesn't you'll need to post your code AS-IS without showing us your 'selected' lines.
|All times are GMT +1. The time now is 10:23 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.