test queue

This commit is contained in:
2026-06-11 13:11:39 +02:00
parent 1c91614d03
commit 1acd89317d
5 changed files with 71 additions and 20 deletions
+2 -3
View File
@@ -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.