<?php
$ch = curl_init('http://localhost:8000/dashboard/expiredItems?branch_id=all&search=tenormin&page=1');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIE, "PHPSESSID=your_session_id"); // This won't work, we need an active session
// Let's just include the controller and call it directly? No, it requires auth.
$res = curl_exec($ch);
echo "Response:\n";
echo $res;
