HTTP 请求-动态URL
动态设置 HTTP 请求 节点的URL
问题背景
动态设置 HTTP 请求 节点的URL
解决方案
设置 HTTP 请求节点的 URL 属性
示例

示例JSON
[{"id":"b36aa30.3a7276","type":"http request","z":"65b5dbf44a0ca401","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":600,"y":3580,"wires":[["1ef9987c.956c78"]]},{"id":"11167f67.5d5031","type":"inject","z":"65b5dbf44a0ca401","name":"注入 URL","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payload":"https://jsonplaceholder.typicode.com/todos/1","payloadType":"str","x":210,"y":3580,"wires":[["70154cd4.de1444"]]},{"id":"70154cd4.de1444","type":"change","z":"65b5dbf44a0ca401","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":3580,"wires":[["b36aa30.3a7276"]]},{"id":"1ef9987c.956c78","type":"debug","z":"65b5dbf44a0ca401","active":true,"console":"false","complete":"false","x":760,"y":3580,"wires":[]}]
运行结果
