Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JSON over HTTP can communicate its size with an HTTP header.


There’s no reason strings cant be sent like binary if you do a size header first. The problem is trying to send binary like a string where your data might have 0s that could be interpreted by the receiver as string terminations. Typically base64 is used to address this issue


Even if it's compressed?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: