����JFIF��`�`�����Viewing File: /home/u820193700/domains/thereown.com/public_html/test6.php
<?php require 'api/config.php'; $ch = curl_init('http://localhost/thereown/api/index.php?action=login'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['action'=>'login', 'password'=>'test1234'])); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); $res = curl_exec($ch); echo 'LOGIN:'.$res; $ch = curl_init('http://localhost/thereown/api/index.php?action=add_delivery'); curl_setopt($ch, CURLOPT_POST, 1); file_put_contents('test.jpg', 'fake image'); $cfile = new CURLFile('test.jpg', 'image/jpeg', 'test.jpg'); curl_setopt($ch, CURLOPT_POSTFIELDS, ['name'=>'Classic 350', 'sub'=>'Test', 'location'=>'Test Loc', 'file'=>$cfile]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); $res2 = curl_exec($ch); echo 'UPLOAD:'.$res2; ?>
Back to Directory �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������������� ������w�!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������ ��?��_��+��?��(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(�����