xlar54 / ultimateii-dos-lib

cc65 library for accessing the DOS and network functions of the Ultimate II+ cartridge and Ultimate 64 motherboard
GNU General Public License v3.0
59 stars 13 forks source link

ultimate_lib - Mishandling of _ in URL when send over network with uii_tcpsocketwrite_ascii #47

Open michael-denzler opened 4 years ago

michael-denzler commented 4 years ago

When using uii_tcpsocketwriteascii all are replaced by .

Example Code:

int port = 80;
unsigned char socketnr = 0;
char *cmd = "GET /roller/0?go=to_pos&roller_pos=40 HTTP/1.0\n\n";
char *host = "192.168.1.1";
socketnr = uii_tcpconnect(host, port);
uii_tcpsocketwrite_ascii(socketnr, cmd);
uii_tcpclose(socketnr);

Result in tcpdump is: GET /roller/0?go=to.pos&roller.pos=40 HTTP/1.0