summaryrefslogtreecommitdiffstats
path: root/src/client/HTTPEngineSender.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-16 16:50:59 +0000
committerDavid Robillard <d@drobilla.net>2008-11-16 16:50:59 +0000
commit422694ebc886882fc8c2f0555a725d052dfc935c (patch)
tree39474e6c6dea95328eeed3963d5dcf0f958397d1 /src/client/HTTPEngineSender.cpp
parentf1b0b3495340399bebb93b20ed9a264a3db4e5da (diff)
downloadingen-422694ebc886882fc8c2f0555a725d052dfc935c.tar.gz
ingen-422694ebc886882fc8c2f0555a725d052dfc935c.tar.bz2
ingen-422694ebc886882fc8c2f0555a725d052dfc935c.zip
More HTTP.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1726 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/HTTPEngineSender.cpp')
-rw-r--r--src/client/HTTPEngineSender.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp
index 7a6366e0..4dbcb4b2 100644
--- a/src/client/HTTPEngineSender.cpp
+++ b/src/client/HTTPEngineSender.cpp
@@ -113,6 +113,13 @@ HTTPEngineSender::new_port(const string& path,
uint32_t index,
bool is_output)
{
+ const string uri = _engine_url + "/patch" + path;
+ cout << "HTTP " << uri << " NEW PORT: " << path << endl;
+ SoupMessage* msg = soup_message_new("PUT", uri.c_str());
+ string str = string("NEW PORT").append(path).append(type);
+ soup_message_set_request(msg, "application/x-turtle",
+ SOUP_MEMORY_COPY, str.c_str(), str.length());
+ soup_session_send_message(_session, msg);
}