Questions tagged as 'curl'

1
answer

What does (-X, -H, -d) mean for this command (curl -X POST -H "Content-Type: application / json" -d) and how to do it from the php file?

curl -X POST -H "Content-Type: application/json" -d I need to perform this command and send a JSON to a particular API that will return a response but I do not know how the structure of that would look in a PHP file and what that data means (-...
asked by 30.07.2016 / 13:06
1
answer

Error doing POST containing "@" or "#" in PHP with cURL

I'm having a problem and I can not fix it, I have a PHP script that submits a form using cURL. Initially I used the format array(key => value) to submit the POST data. However, I had a problem:    When @ is at the beginning of...
asked by 22.01.2016 / 17:20
1
answer

How to save Cookies from a remote site with cURL?

I'm having trouble saving and reading cookies from a remote site I'm opening with cURL: $cr = curl_init($this->_URL); curl_setopt($cr, CURLOPT_RETURNTRANSFER, true); curl_setopt($cr, CURLOPT_USERAGENT, $u...
asked by 27.03.2015 / 08:25
1
answer

Cookies with cURL help

I need to access a certain URL and load the file 'cookies.txt' the problem is the following I access the URL normally plus the Cookies.txt does not load ... I think the problem is here in this part $cookiepattern = "#Set-Cookie:\s+(?<coo...
asked by 05.10.2017 / 04:53
1
answer

Curl post tracking

I'm trying to do a POST with curl to check my deliveries. But nothing is coming back. Can anyone help me? <?php $post = array('Objetos' => 'PN752805878BR'); // iniciar CURL $ch = curl_init(); // informar URL e outras funções ao CU...
asked by 30.06.2017 / 14:30
2
answers

How to turn this Curl / PUT command into php?

How do I transpose this curl code to send it in a PHP file? curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -d { "status":"paused" } https://api.mercadolibre.com/items/ITEM_ID?access_token=YOUR_ACCESS_TOKEN    ...
asked by 07.09.2016 / 22:59
1
answer

How to use the NFePHP API without the need for the server to support cURL 7.22.2 [closed]

Is there any possibility of using the NFePHP API without the need for server to support cURL 7.22.2 ? Any configuration I can perform, an alternative lib, etc?     
asked by 16.01.2017 / 12:23
1
answer

cURL 100% look identical to my request using regular browser

I need to do some standard functions that I always do manually, and I would like to automate this. I tested it with iframe , but without success, it does not read the document nodes. I thought of using the cURL library, so I get the conten...
asked by 20.11.2015 / 15:33
1
answer

Extract HTML value

I get the html and a part of it from where I need to extract the data and this one <td class="address-list-item"> NOme silva <div class="modal-content" style="display:none;"> <div class="address-list-moda...
asked by 03.06.2015 / 08:09
1
answer

How to upload using php without forms

I need to upload a file from the local server to another server. In this environment I compact the file on the local server and send the compressed file to the remote server. The remote server will have the rules validation specifications to kno...
asked by 16.02.2015 / 17:26