when the host is of the form, domain.com gives a connection error, it gives me an answer that does not exist, however, when the host is domain.com/test/test.php, for the code
what difference is there between host and url?
Search found 3 matches
- Sun Dec 12, 2021 6:19 am
- Forum: Development of MicroPython
- Topic: OSError: [Errno 22] EINVAL
- Replies: 3
- Views: 14585
- Sun Dec 12, 2021 4:42 am
- Forum: Development of MicroPython
- Topic: OSError: [Errno 22] EINVAL
- Replies: 3
- Views: 14585
Re: OSError: [Errno 22] EINVAL
thanks for the information But, when I put it, it tells me that it is not declared. AF_INET socket(AF_INET, SOCK_STREAM) s.connect(socket.getaddrinfo(url, 80)[0][-1]) I am programming on an A9G module, so I am very limited in installing libraries. It always gives me an error. I'm desperate, I can't ...
- Wed Dec 08, 2021 7:29 pm
- Forum: Development of MicroPython
- Topic: OSError: [Errno 22] EINVAL
- Replies: 3
- Views: 14585
OSError: [Errno 22] EINVAL
I am trying to carry 3 variables by the GET method on a pbc. and it gives me this error. Can you help me? I'm going crazy OSError: [Errno 22] EINVAL host = "domain.com/test/test.php" url = "domain.com/test/test.php?a=" + str(vara) + "&b=" + str(varb) + "&c=" + str(varc) port = 80 print(url) s = sock...