Home php Watch the news CURL on odnoklassniki.ru

Watch the news CURL on odnoklassniki.ru

Author

Date

Category

Tell me, maybe someone has already come across a similar problem and knows where to look an example. It is necessary to post the news from the site (there is RSS) via CURL to classmates page. With a reference and picture.


Answer 1, Authority 100%

Well, here is already clean autocoptering of the Crook form, by the POST method. Here is a piece of code:

$ contract = "[email protected]& pass = 12345"; // Request Parameters
 ...
 $ ch = curl_init ();
 curl_setopt ($ ch, curlopt_url, "https://accounts.google.com/serviceLogin");
 CURL_SETOPT ($ CH, CURLOPT_POST, 1); // specify the data sending method
 CURL_SETOPT ($ CH, CURLOPT_POSTFIELDS, $ CONT); // POST DATA
 $ result = curl_exec ($ CH);
 if ($ result) echo ("Ready!"); ELSE ECHO ("NO ...");
 CURL_CLOSE ($ CH);

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions