I have a string URL that I want to send or "post" to a target IP.
I've tried using the requests library but I keep getting errors.
import requests
data = {'http://192.168.0.1/mobile/write.fcgi?
serverId=1'}
r = requests.post('http://192.168.0.1', data=data)
The error says a bytes-like object is required, not 'str'.
How can I send this string to the IP 192.168.0.1 (local host): http://192.168.0.1/mobile/write.fcgi?serverId=1