1<testcase> 2<info> 3<keywords> 4MQTT 5MQTT PUBLISH 6</keywords> 7</info> 8 9# 10# Server-side 11<reply> 12<data nocheck="yes"> 13hello 14</data> 15<datacheck hex="yes"> 1600 04 31 31 39 30 68 65 6c 6c 6f 5b 4c 46 5d 0a 17</datacheck> 18</reply> 19 20# 21# Client-side 22<client> 23 24# require HTTP too as otherwise CURLOPT_POST doesn't exist 25<features> 26mqtt 27http 28</features> 29<server> 30mqtt 31</server> 32<name> 33MQTT PUBLISH with CURLOPT_POST set (no payload) 34</name> 35<tool> 36lib%TESTNUMBER 37</tool> 38<command option="binary-trace"> 39"mqtt://%HOSTIP:%MQTTPORT/%20" 40</command> 41</client> 42 43# 44# Verify data after the test has been "shot" 45<verify> 46# These are hexadecimal protocol dumps from the client 47# 48# Strip out the random part of the client id from the CONNECT message 49# before comparison 50<strippart> 51s/^(.* 00044d5154540402003c000c6375726c).*/$1/ 52</strippart> 53<protocol> 54client CONNECT 18 00044d5154540402003c000c6375726c 55server CONNACK 2 20020000 56</protocol> 57<errorcode> 5843 59</errorcode> 60</verify> 61</testcase> 62