Reputation: 420
I'm using CURL to get some information from a remote server, it takes in average 15 to 20 seconds for the remote server to generate the response, and then it's about 5MB to 10MB.
The problem is that CURL takes forever to retrieve the response.
Is there any way to improve CURL performance?
Right now the solution that I've found is to have the server return a new URL to a static generated file, and then download that file. I'd like to be able to do it in only one request.
Upvotes: 0
Views: 1209
Reputation: 38740
You have a few options:
Upvotes: 2
Reputation: 680
What? You are saying that server takes 15-20 seconds to generate response and Curl is taking a lot time?
I don't want to blow your mind, but if you get that server to reply faster Curl will retrieve response faster.
Upvotes: 0