Questions tagged as 'curl'

1
answer

How to pass a parameter via curl_exec to another url with PHP?

I have a PHP that after performing an operation it calls an external URL and returns the value of this external URL, using curl_exec. However, I need to pass a parameter to this new url, preferably as a session. How can I pass this parameter...
asked by 02.07.2017 / 21:04
1
answer

How to update a different table with a data from another table in PDO

Personal I have a payroll table, and I have an indemnification code for each transaction, when receiving the data of the update, I want to get the data and insert in update in another table of the bank being that 1 of the fields does not have in...
asked by 26.06.2017 / 20:46
1
answer

Sign in and see if your page is online with curl

I want to log in to different pages with Curl and see if everything is OK.  Example: login successfully returns a text to the screen "login ok" if it did not work take some element of the error page and me printa in the screen under the "...
asked by 13.06.2017 / 21:08
1
answer

Go to the page and log in with Curl

I'm trying to login with Curl on web pages using the simplest code possible but never works even the code being seemingly correct follows the code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/login.php'); curl_seto...
asked by 13.06.2017 / 07:13
1
answer

How to fill input field and submit form with cURL?

How do I fill out the input and submit of form for this site link using cURL? I want to use the video chat system of this site in my project, it is very simple to create a new chat room, but in my project I need this to be done autom...
asked by 29.03.2017 / 18:44
1
answer

Sending POST with Python through curl

I want to turn the form (which is working) into a curl to run on the backend <form action="https://pt.stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fpt.stackoverflow.com%2f" method="post"> <input type="te...
asked by 28.02.2017 / 13:42
1
answer

Curl and Laravel, always redirects

I'm trying to make a simple curl to a Laravel app (5.2) running on my machine: curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1" http://192.168.1.65:8000/pt With this result: reque...
asked by 05.10.2016 / 10:34
2
answers

Simulate APP (Android) data search in PHP / Python

I would like tips and ways on how I can simulate data search for an APP (Android) in PHP or Python. I found this example link , where the Sinesp-Citizen APP is simulated in Python. How can I debug the APP to identify URLS, Tokens, Passwor...
asked by 12.09.2016 / 22:53
1
answer

Send multiple images via Curl

Hello, I need to send via multiple Curl images, which will be received in an API, only in the API it receives in a specific way, in which I am not able to send through the Curl. Here's how the API receives the image: foreach ($_FILES as $file)...
asked by 30.06.2016 / 18:50
1
answer

how to make queries passing 2 parameters via Curl?

I need to send a user and password via curl in txt, it's just for testing, for example curl -v -H "Accept: application / json" -H "Content-type: application / json" link I want to pass the user and password in this query, someone can hel...
asked by 19.08.2016 / 17:12