Probably a dumb question, but how to enable UDP in curl on a Ubuntu server? I'm trying to set up a torrent tracker but its unable to scrape from any other trackers. When I run the Curl command with any UDP url in SSH Putty it gives the following message:
Protocol UDP not supported or disabled in libcurl
Overview. The Curl Language provides APIs to use TCP sockets and UDP sockets.
curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.
Most of the protocols you use with curl speak TCP. With TCP, a client such as curl must first figure out the IP address(es) of the host you want to communicate with, then connect to it. "Connecting to it" means performing a TCP protocol handshake.
Such connections implicitly start out using SSL/TLS and as such servers and clients use TCP port 465 to communicate with each other.
Nothing's a dumb question if it means you'll learn from it. When I look at the cURL homepage, I don't see UDP as a listed protocol. And the resources online don't return many relevant results from what I can see.
Have you considered looking into anything for connecting to sockets?
Not sure how extensive your language knowledge base is, but here's a tutorial to consider: http://www.ibm.com/developerworks/linux/tutorials/l-sock2/
Additionally, NodeJS UDP might have a smaller learning curve depending on what you're familiar with.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With