|
@@ -1392,6 +1392,30 @@ public function testdwyput(Request $request){
|
|
|
return $this->json_return(200,'',json_decode($response,true));
|
|
|
}
|
|
|
|
|
|
+public function testdwydel(Request $request){
|
|
|
+ $data = $request->all();
|
|
|
+
|
|
|
+ $url = $data['url'];
|
|
|
+ $header = $data['header'];
|
|
|
+
|
|
|
+ $curl = curl_init();
|
|
|
+
|
|
|
+ curl_setopt_array($curl, array(
|
|
|
+ CURLOPT_URL => $url,
|
|
|
+ CURLOPT_RETURNTRANSFER => true,
|
|
|
+ CURLOPT_ENCODING => '',
|
|
|
+ CURLOPT_MAXREDIRS => 10,
|
|
|
+ CURLOPT_TIMEOUT => 0,
|
|
|
+ CURLOPT_FOLLOWLOCATION => true,
|
|
|
+ CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
|
|
+ CURLOPT_CUSTOMREQUEST => 'DELETE',
|
|
|
+ CURLOPT_HTTPHEADER => $header,
|
|
|
+ ));
|
|
|
+ $response = curl_exec($curl);
|
|
|
+ curl_close($curl);
|
|
|
+ return $this->json_return(200,'',json_decode($response,true));
|
|
|
+ }
|
|
|
+
|
|
|
public function testaa1(Request $request){
|
|
|
$curl = curl_init();
|
|
|
|