Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable UDP protocol in curl?

Tags:

curl

udp

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

like image 647
Shweta_N Avatar asked Aug 27 '13 02:08

Shweta_N


People also ask

Can curl use UDP?

Overview. The Curl Language provides APIs to use TCP sockets and UDP sockets.

Which protocol does curl use?

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.

Does curl use HTTP or TCP?

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.

What TCP port does curl use?

Such connections implicitly start out using SSL/TLS and as such servers and clients use TCP port 465 to communicate with each other.


1 Answers

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.

like image 122
daleyjem Avatar answered Nov 15 '22 06:11

daleyjem