If you put the topic name into a url parameter, you need to url-encode
it. Example:
$ python3
>>> from urllib.parse import urlencode
>>> urlencode({"topic": "my_topic_name#ephemeral"})
'topic=my_topic_name%23ephemeral'
$ curl "
http://127.0.0.1:4151/pub?topic=my_topic_name%23ephemeral"
--data-raw "{message}"
On 10/2/18, Cevin Cheung <
cevin....@gmail.com> wrote:
> not work.
> http rest api will ignore url hash #....
>
> 在 2018年10月3日星期三 UTC+8上午6:33:49,Pierce Lopez写道:
>>
>> You get this behavior when you use a topic name with "#emepheral" at
>> the end, for example
>>
>> topic = "some_topic_name#ephemeral"
>>
--
- Pierce