Initial commit untuk UAS SIG
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$ch = curl_init('http://localhost/webgis-sig/backend/create_jalan.php');
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"nama_jalan":"Test Error","status":"Nasional","panjang":"123.45","geom":{"type":"LineString","coordinates":[[1,1],[2,2]]}}');
|
||||
$res = curl_exec($ch);
|
||||
var_dump($res);
|
||||
if ($res === false) { echo curl_error($ch); }
|
||||
Reference in New Issue
Block a user