• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Prestashop cUrl Login

phpcurlprestashop


PHP Snippet 1:

$url = 'http://example.com/prestashop/login';
$fields = array(
   'submitLogin' => 1,
   'email' => '[email protected]',
   'passwd' => '123456',
);

$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, true);

curl_setopt($ch,CURLOPT_POSTFIELDS, $fields);

$result = curl_exec($ch);

curl_close($ch);

echo json_encode($result);

Related Snippets

Last order would be re-order in wooCommerce. How is it possible?

PHP web3 ERC20 token function call

Fatal error: [] operator not supported for strings

run a query using EXECUTE BLOCK to prepair a column for an unique-Index

How to show a popup modal in codeIgniter?

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

How to Display Data in Yajra Datatables Laravel 7?

How to get AJAX to post on second page?

protect my blog content

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

Check if user online laravel

get attribute from class not working php 7

api response laravel doesn't show

Hi, I am making a contact form thingy, and my php isn't working any reason why?

About Contact Privacy policy Terms and conditions