test queue
This commit is contained in:
+2
-3
@@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
$ch = curl_init('http://push:8080/pub/123');
|
||||
$ch = curl_init('http://push:8080/pub/channel');
|
||||
# Setup request to send json via POST.
|
||||
$payload = json_encode( array( "customer"=> $data ) );
|
||||
$payload = json_encode( array( "customer"=> $argv[1]) );
|
||||
curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );
|
||||
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
|
||||
# Return response instead of printing.
|
||||
|
||||
Reference in New Issue
Block a user