mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-06 00:37:25 +03:00
Fix all kind of development and trying code.
This commit is contained in:
parent
ccf90cab61
commit
a94d0e0b31
4 changed files with 32 additions and 24 deletions
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
include_once('../config.inc.php');
|
||||
include_once('includes/config.inc.php');
|
||||
|
||||
class ApiHandler {
|
||||
public function __construct() {
|
||||
|
@ -89,11 +89,11 @@ class ApiHandler {
|
|||
|
||||
curl_setopt($this->curlh, CURLOPT_URL, $this->baseurl().$this->url);
|
||||
|
||||
print "Here we go:\n";
|
||||
print "Request: ".$this->method.' '.$this->baseurl().$this->url."\n";
|
||||
if ($this->content != '') {
|
||||
print "Content: ".$this->content."\n";
|
||||
}
|
||||
//print "Here we go:\n";
|
||||
//print "Request: ".$this->method.' '.$this->baseurl().$this->url."\n";
|
||||
//if ($this->content != '') {
|
||||
// print "Content: ".$this->content."\n";
|
||||
//}
|
||||
|
||||
$return = curl_exec($this->curlh);
|
||||
$code = curl_getinfo($this->curlh, CURLINFO_HTTP_CODE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue