Skip to content

Instantly share code, notes, and snippets.

@sphelan-extron
Created February 1, 2013 22:26
Show Gist options
  • Save sphelan-extron/4694588 to your computer and use it in GitHub Desktop.
Save sphelan-extron/4694588 to your computer and use it in GitHub Desktop.
MH addTrack
POST /ingest/addTrack HTTP/1.1
Host: 10.8.23.122:8080
Content-Length: 581
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/1.0.3 CPython/2.7.3 Windows/7
X-Requested-Auth: Digest
Content-Type: multipart/form-data; boundary=2ccb18c0ae7e4c5d84aa66ea9dcfe7da
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da
Content-Disposition: form-data; name="mediaPackage"
<ns2:mediapackage xmlns:ns2="http://mediapackage.opencastproject.org" start="2013-01-29T21:17:41Z" id="6ff46898-fbf5-4ac8-93b7-9e60d5e41b5e" duration="5"><media/><metadata/><attachments/></ns2:mediapackage>
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da
Content-Disposition: form-data; name="flavor"
presentation/source
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da
Content-Disposition: form-data; name="file"; filename="screen-1.0.mpg"
Content-Type: video/mpeg
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da--
HTTP/1.1 401 Full authentication is required to access this resource
Set-Cookie: JSESSIONID=1tq2upgn1yiyi;Path=/
WWW-Authenticate: Digest realm="Opencast Matterhorn", qop="auth", nonce="MTM1OTQ5NDY3ODQyODpmNWJjNDJiMGVhODY0NmEzNmRhOTY4OWJhMGQ1YjQ3MA=="
Content-Type: text/html; charset=iso-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 1472
Server: Jetty(6.1.x)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 401 Full authentication is required to access this resource</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /ingest/addTrack. Reason:
<pre> Full authentication is required to access this resource</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
POST /ingest/addTrack HTTP/1.1
Host: 10.8.23.122:8080
Content-Length: 581
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/1.0.3 CPython/2.7.3 Windows/7
X-Requested-Auth: Digest
Content-Type: multipart/form-data; boundary=2ccb18c0ae7e4c5d84aa66ea9dcfe7da
Authorization: Digest username="test", realm="Opencast Matterhorn", nonce="MTM1OTQ5NDY3ODQyODpmNWJjNDJiMGVhODY0NmEzNmRhOTY4OWJhMGQ1YjQ3MA==", uri="/ingest/addTrack", response="7713c4dce1335cf369fe8e1f91df369f", qop=auth, nc=00000001, cnonce="58e9d30e5cc695b7"
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da
Content-Disposition: form-data; name="mediaPackage"
<ns2:mediapackage xmlns:ns2="http://mediapackage.opencastproject.org" start="2013-01-29T21:17:41Z" id="6ff46898-fbf5-4ac8-93b7-9e60d5e41b5e" duration="5"><media/><metadata/><attachments/></ns2:mediapackage>
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da
Content-Disposition: form-data; name="flavor"
presentation/source
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da
Content-Disposition: form-data; name="file"; filename="screen-1.0.mpg"
Content-Type: video/mpeg
--2ccb18c0ae7e4c5d84aa66ea9dcfe7da--
HTTP/1.1 200 OK
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=18ogdcrk3djwy;Path=/
Content-Type: text/xml
Set-Cookie: JSESSIONID=tl4peidrsedi;Path=/
Date: Tue, 29 Jan 2013 21:24:28 GMT
Content-Length: 524
Server: Jetty(6.1.x)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:mediapackage start="2013-01-29T21:17:41Z" id="6ff46898-fbf5-4ac8-93b7-9e60d5e41b5e" duration="5" xmlns:ns2="http://mediapackage.opencastproject.org"><media><track type="presentation/source" id="313bb1fe-8ac6-4125-af08-1c4d54ee844c"><tags/><url>http://10.8.23.122:8080/files/mediapackage/6ff46898-fbf5-4ac8-93b7-9e60d5e41b5e/313bb1fe-8ac6-4125-af08-1c4d54ee844c/screen_1_0.mpg</url><duration>-1</duration></track></media><metadata/><attachments/></ns2:mediapackage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment