Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:36:17+00:00 2026-06-14T10:36:17+00:00

In a Max/MSP module I have a simple Tcp client that sends data to

  • 0

In a Max/MSP module I have a simple Tcp client that sends data to a server. I want to use this to send a PUT request to my MIDI/OSC controller(an Eigenharp). It asks for the PUT request to make one of its lights turn on.

Now, the following works in cURL:

curl http://localhost:1024/column/1/row/5 -X PUT --data green

However,

How can I accomplish something like that using a basic TCP stream, without any extra libraries?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:36:18+00:00Added an answer on June 14, 2026 at 10:36 am

    Here is a generic way to figure it out (which is, so to speak, a trowel instead of fish):

    First,

    > nc -l -p 7070
    

    which will begin listening to the tcp port 7070. Then (from a separate shell)

    > curl http://localhost:7070/column/1/row/5 -X PUT --data green
    

    After that nc will print something like:

    PUT /column/1/row/5 HTTP/1.1
    User-Agent: (Some curl info here)
    Host: localhost:7070
    Accept: */*
    Content-Length: 5
    Content-Type: application/x-www-form-urlencoded
    
    green
    

    Which is more or less what you need to send through the socket.

    You can use the very same nc (netcat) utility as a network Swiss-army knife as well to send the data:

    > cat request.txt | nc host port
    

    That said, HTTP RFC is your best friend.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send OSC messages from iphone to another programme (max/msp) by creating
select max(Key) from MyTable with(nolock) I have this T-SQL statement but need to use
I want to use max clause to find the maximum value according to field
If I use max-device-width does that include landscape mode? Say I use it to
I have a varchar(max) field with XML data in it. I need to clean
SELECT MAX(some_field) FROM table_A GROUP BY another_field This only gets the max value of
The max number of characters you can use in string in a vba function
Example: print max(chain_length(i) for i in xrange(1,10001)) This returns the maximum/biggest chain_length (an arbitrary
Is there a 'Max # of result sets that can be displayed' when executing
In my db max date is as : 27-FEB-12 when i am fetching data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.