Skip to content
Advertisement

Tag: curl

Retrieve data from CURL “-d” using PHP

This question is not about how to use CURL in PHP. But how to retrieve data that send using CURL with “-d” option. This command: curl -H ‘Content-Type: text/plain; charset=utf-8’ -d ‘Hello, World!’ -X POST http://localhost:8080 will produce empty array in $_POST variable. Does anyone know? Thank you. Answer I think this is a header conflict. You trying to send

PHP cURL post data is not sent to target url

Maybe it’s duplicate question. I have tried any solution with similar question with mine that I can find and implemented it to my probs, not a single solution is work. I need to use PHP curl to get data from other systems (B). But in the B the data I sent is not defined or no data was sent. curl

Cant echo anything after cURL in PHP

I have a curl that works fine. The file where the cURL is placed is a PHP file, executed by .ajax I am echoing an $apikey at the end of the PHP file, without the cURL script. it prints correctly. …

File upload CURL command to PHP Curl

I have CURL command I need to use him in php page how I can change it. I have no idea about it. The command : Answer For your curl command, Please try this PHP : Please also study the reference provided by Professor Abronsius if you have time. It’s worth the effort.

Problems with cUrl giving constant http code 0 => error 6

Hello and foremost thank you for your minute! I am having troubles with cURL. This seems to work perfect on my localhost but on my server it just doesn’t send off requests. Each response of the error code is “Could not resolve host: ….the url im searching…” I haven’t found much documentation on similiar errors online and it seems not

convert HTML table to PHP Array using JSDOM

I’d like to convert HTML this table into PHP Array What i’ve tried so far : The result i’ve got : This error : and this Array : The result that i want, is I only want the table content in numeric array and get rid of that errors above : Answer It’s hacky solution, but this should work. From

Advertisement