Questions tagged as 'curl'

2
answers

Problem returning a file size with PHP and Curl

I'm trying to return the size of a file with php and curl from an external host but when running curl download_content_length comes as -1, could anyone help me?     
asked by 06.08.2014 / 20:23
0
answers

POST requests for specific URL are taking 3 minutes

All my POST-type requests for a specific URL are taking about 3 minutes to return the response , that is, a few seconds after I submit the form , look at the API site and there my data is posted, but on my site the request is pending, after e...
asked by 04.12.2018 / 19:04
0
answers

Problem consuming webservice SPC Brasil in PHP

Good afternoon, I've been trying to make a webservice in PHP that works with SOAP, but I've never been successful. What came closest was working with cURL but after a strange message I can not do it anymore. nothing after this message. Does anyo...
asked by 21.11.2018 / 15:49
0
answers

Get content from a site whose URL changes

I'm trying to get a video from a website. I can get the URL where this video is located, but when I run the command curl or file_get_contents it will not. The strange thing is that if I put the same link in the browser it goe...
asked by 10.11.2018 / 00:49
1
answer

Is it possible to send data in the body and in the url using the PUT method and libcurl?

I'm trying to send the data both in the URL and in the body using the PUT the idea was to make it work just like the POST method, but being the PUT method. This is because I see many requests where the url would be / book / and in the body wo...
asked by 25.10.2018 / 23:49
1
answer

I can not login with cURL in PHP. URL does not change

I am trying to login to a system using cURL. But I can not log in, I think the problem is redirection. I have a website (mysite.com) that has a form. this form calls the submit.php page. On this page I have the following code <?php //peg...
asked by 06.10.2018 / 07:27
0
answers

Navigate with Curl after executing login

Good morning, I'm trying, after logging into a website, to extract some information, however, after logging into the site, I need to send a new post to select the data. The problem is that in this second request the screen goes blank. I already...
asked by 04.10.2018 / 17:50
1
answer

Php Extracting items from a list

How do I stop extracting items from a <table> using php?? The situation is as follows: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"url_onde_pego_os_dados"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $result=curl_exec ($c...
asked by 22.09.2018 / 19:43
0
answers

How to use cURL with proxy and POST method in linux terminal?

I would like to know if there is a possibility to create a POST request using a proxy via terminal. As far as I've come: curl -vd -D- -o/dev/null -x ip:porta website.com.br Always return me:    curl: (7) Failed connect to xx.xxx.xx.xx...
asked by 17.09.2018 / 05:49
0
answers

Curitiba WS - certificate submission problem

I'm trying to communicate with WS from Curitiba (ISS Curitiba) for sending and querying RPS lots (lots of NFS-e), but WS always returns me the error: "E504 - Error: The service provider's digital certificate is required." So my question...
asked by 03.09.2018 / 17:24