The situation is following. I have a local (development) PHP server (Win + IIS) on my computer and I would like to call a function on a remote server because there is an executable file on the remote …
Tag: curl
Best way to manage long-running php script?
I have a PHP script that takes a long time (5-30 minutes) to complete. Just in case it matters, the script is using curl to scrape data from another server. This is the reason it’s taking so long; it has to wait for each page to load before processing it and moving to the next. I want to be able
How do I make a request using HTTP basic authentication with PHP curl?
I’m building a REST web service client in PHP and at the moment I’m using curl to make requests to the service. How do I use curl to make authenticated (http basic) requests? Do I have to add the …
Convert command line cURL to PHP cURL
I’ve never done any curl before so am in need of some help. I’ve tried to work this out from examples but cannot get my head around it! I have a curl command that I can successfully run from a linux(ubuntu) command line that puts a file to a wiki through an api. I would need to incorporate this curl
curl error 18 – transfer closed with outstanding read data remaining
when retrieving data from a URL using curl, I sometimes (in 80% of the cases) get error 18: transfer closed with outstanding read data remaining Part of the returned data is then missing. The weird thing is that this does never occur when the CURLOPT_RETURNTRANSFER is set to false, that is the curl_exec function doesn’t return the data but displays