1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>curlhttpsink: GStreamer Bad Plugins 1.0 Plugins Reference Manual</title> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="index.html" title="GStreamer Bad Plugins 1.0 Plugins Reference Manual"> 8<link rel="up" href="ch01.html" title="gst-plugins-bad Elements"> 9<link rel="prev" href="gst-plugins-bad-plugins-curlftpsink.html" title="curlftpsink"> 10<link rel="next" href="gst-plugins-bad-plugins-curlhttpsrc.html" title="curlhttpsrc"> 11<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> 12<link rel="stylesheet" href="style.css" type="text/css"> 13</head> 14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> 16<td width="100%" align="left" class="shortcuts"> 17<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 18 <a href="#gst-plugins-bad-plugins-curlhttpsink.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#gst-plugins-bad-plugins-curlhttpsink.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> 20 <a href="#gst-plugins-bad-plugins-curlhttpsink.properties" class="shortcut">Properties</a></span> 21</td> 22<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 23<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 24<td><a accesskey="p" href="gst-plugins-bad-plugins-curlftpsink.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 25<td><a accesskey="n" href="gst-plugins-bad-plugins-curlhttpsrc.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 26</tr></table> 27<div class="refentry"> 28<a name="gst-plugins-bad-plugins-curlhttpsink"></a><div class="titlepage"></div> 29<div class="refnamediv"><table width="100%"><tr> 30<td valign="top"> 31<h2><span class="refentrytitle"><a name="gst-plugins-bad-plugins-curlhttpsink.top_of_page"></a>curlhttpsink</span></h2> 32<p>curlhttpsink — sink that uploads data to a server using libcurl</p> 33</td> 34<td class="gallery_image" valign="top" align="right"></td> 35</tr></table></div> 36<div class="refsect1"> 37<a name="gst-plugins-bad-plugins-curlhttpsink.properties"></a><h2>Properties</h2> 38<div class="informaltable"><table class="informaltable" border="0"> 39<colgroup> 40<col width="150px" class="properties_type"> 41<col width="300px" class="properties_name"> 42<col width="200px" class="properties_flags"> 43</colgroup> 44<tbody> 45<tr> 46<td class="property_type"> 47<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> 48<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-curlhttpsink.html#GstCurlHttpSink--content-type" title="The “content-type” property">content-type</a></td> 49<td class="property_flags">Read / Write</td> 50</tr> 51<tr> 52<td class="property_type"> 53<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> 54<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-curlhttpsink.html#GstCurlHttpSink--proxy" title="The “proxy” property">proxy</a></td> 55<td class="property_flags">Read / Write</td> 56</tr> 57<tr> 58<td class="property_type"> 59<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> 60<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-curlhttpsink.html#GstCurlHttpSink--proxy-passwd" title="The “proxy-passwd” property">proxy-passwd</a></td> 61<td class="property_flags">Read / Write</td> 62</tr> 63<tr> 64<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td> 65<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-curlhttpsink.html#GstCurlHttpSink--proxy-port" title="The “proxy-port” property">proxy-port</a></td> 66<td class="property_flags">Read / Write</td> 67</tr> 68<tr> 69<td class="property_type"> 70<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> 71<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-curlhttpsink.html#GstCurlHttpSink--proxy-user" title="The “proxy-user” property">proxy-user</a></td> 72<td class="property_flags">Read / Write</td> 73</tr> 74<tr> 75<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> 76<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-curlhttpsink.html#GstCurlHttpSink--use-content-length" title="The “use-content-length” property">use-content-length</a></td> 77<td class="property_flags">Read / Write</td> 78</tr> 79</tbody> 80</table></div> 81</div> 82<a name="GstCurlHttpSink"></a><div class="refsect1"> 83<a name="gst-plugins-bad-plugins-curlhttpsink.other"></a><h2>Types and Values</h2> 84<div class="informaltable"><table class="informaltable" width="100%" border="0"> 85<colgroup> 86<col width="150px" class="name"> 87<col class="description"> 88</colgroup> 89<tbody><tr> 90<td class="datatype_keyword">struct</td> 91<td class="function_name"><a class="link" href="gst-plugins-bad-plugins-curlhttpsink.html#GstCurlHttpSink-struct" title="struct GstCurlHttpSink">GstCurlHttpSink</a></td> 92</tr></tbody> 93</table></div> 94</div> 95<div class="refsect1"> 96<a name="gst-plugins-bad-plugins-curlhttpsink.object-hierarchy"></a><h2>Object Hierarchy</h2> 97<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 98 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 99 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 100 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a> 101 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseSink.html#GstBaseSink-struct">GstBaseSink</a> 102 <span class="lineart">╰──</span> GstCurlBaseSink 103 <span class="lineart">╰──</span> GstCurlTlsSink 104 <span class="lineart">╰──</span> GstCurlHttpSink 105</pre> 106</div> 107<div class="refsect1"> 108<a name="gst-plugins-bad-plugins-curlhttpsink.description"></a><h2>Description</h2> 109<p>This is a network sink that uses libcurl as a client to upload data to 110an HTTP server.</p> 111<div class="refsect3"> 112<a name="id-1.2.41.7.3"></a><h4>Example launch line</h4> 113<p>Upload a JPEG file to an HTTP server.</p> 114<div class="informalexample"> 115 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> 116 <tbody> 117 <tr> 118 <td class="listing_lines" align="right"><pre>1 1192 1203 1214 1225 1236</pre></td> 124 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch<span class="gtkdoc opt">-</span><span class="number">1.0</span> filesrc location<span class="gtkdoc opt">=</span>image<span class="gtkdoc opt">.</span>jpg <span class="gtkdoc opt">!</span> jpegparse <span class="gtkdoc opt">!</span> curlhttpsink \ 125 file<span class="gtkdoc opt">-</span>name<span class="gtkdoc opt">=</span>image<span class="gtkdoc opt">.</span>jpg \ 126 location<span class="gtkdoc opt">=</span>http<span class="gtkdoc opt">:</span><span class="gtkdoc slc">//192.168.0.1:8080/cgi-bin/patupload.cgi/ \</span> 127 user<span class="gtkdoc opt">=</span>test passwd<span class="gtkdoc opt">=</span>test \ 128 content<span class="gtkdoc opt">-</span>type<span class="gtkdoc opt">=</span>image<span class="gtkdoc opt">/</span>jpeg \ 129 use<span class="gtkdoc opt">-</span>content<span class="gtkdoc opt">-</span>length<span class="gtkdoc opt">=</span><span class="keyword">false</span></pre></td> 130 </tr> 131 </tbody> 132 </table> 133</div> 134 135<p></p> 136</div> 137<div class="refsynopsisdiv"> 138<h2>Synopsis</h2> 139<div class="refsect2"> 140<a name="id-1.2.41.7.4.1"></a><h3>Element Information</h3> 141<div class="variablelist"><table border="0" class="variablelist"> 142<colgroup> 143<col align="left" valign="top"> 144<col> 145</colgroup> 146<tbody> 147<tr> 148<td><p><span class="term">plugin</span></p></td> 149<td> 150 <a class="link" href="gst-plugins-bad-plugins-plugin-curl.html#plugin-curl">curl</a> 151 </td> 152</tr> 153<tr> 154<td><p><span class="term">author</span></p></td> 155<td>Patricia Muscalu <patricia@axis.com></td> 156</tr> 157<tr> 158<td><p><span class="term">class</span></p></td> 159<td>Sink/Network</td> 160</tr> 161</tbody> 162</table></div> 163</div> 164<hr> 165<div class="refsect2"> 166<a name="id-1.2.41.7.4.2"></a><h3>Element Pads</h3> 167<div class="variablelist"><table border="0" class="variablelist"> 168<colgroup> 169<col align="left" valign="top"> 170<col> 171</colgroup> 172<tbody> 173<tr> 174<td><p><span class="term">name</span></p></td> 175<td>sink</td> 176</tr> 177<tr> 178<td><p><span class="term">direction</span></p></td> 179<td>sink</td> 180</tr> 181<tr> 182<td><p><span class="term">presence</span></p></td> 183<td>always</td> 184</tr> 185<tr> 186<td><p><span class="term">details</span></p></td> 187<td>ANY</td> 188</tr> 189</tbody> 190</table></div> 191</div> 192</div> 193</div> 194<div class="refsect1"> 195<a name="gst-plugins-bad-plugins-curlhttpsink.functions_details"></a><h2>Functions</h2> 196<p></p> 197</div> 198<div class="refsect1"> 199<a name="gst-plugins-bad-plugins-curlhttpsink.other_details"></a><h2>Types and Values</h2> 200<div class="refsect2"> 201<a name="GstCurlHttpSink-struct"></a><h3>struct GstCurlHttpSink</h3> 202<pre class="programlisting">struct GstCurlHttpSink;</pre> 203</div> 204</div> 205<div class="refsect1"> 206<a name="gst-plugins-bad-plugins-curlhttpsink.property-details"></a><h2>Property Details</h2> 207<div class="refsect2"> 208<a name="GstCurlHttpSink--content-type"></a><h3>The <code class="literal">“content-type”</code> property</h3> 209<pre class="programlisting"> “content-type” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> 210<p>The mime type of the body of the request.</p> 211<p>Flags: Read / Write</p> 212<p>Default value: NULL</p> 213</div> 214<hr> 215<div class="refsect2"> 216<a name="GstCurlHttpSink--proxy"></a><h3>The <code class="literal">“proxy”</code> property</h3> 217<pre class="programlisting"> “proxy” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> 218<p>HTTP proxy server URI.</p> 219<p>Flags: Read / Write</p> 220<p>Default value: NULL</p> 221</div> 222<hr> 223<div class="refsect2"> 224<a name="GstCurlHttpSink--proxy-passwd"></a><h3>The <code class="literal">“proxy-passwd”</code> property</h3> 225<pre class="programlisting"> “proxy-passwd” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> 226<p>Proxy user password to use for proxy authentication.</p> 227<p>Flags: Read / Write</p> 228<p>Default value: NULL</p> 229</div> 230<hr> 231<div class="refsect2"> 232<a name="GstCurlHttpSink--proxy-port"></a><h3>The <code class="literal">“proxy-port”</code> property</h3> 233<pre class="programlisting"> “proxy-port” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre> 234<p>HTTP proxy server port.</p> 235<p>Flags: Read / Write</p> 236<p>Allowed values: >= 0</p> 237<p>Default value: 3128</p> 238</div> 239<hr> 240<div class="refsect2"> 241<a name="GstCurlHttpSink--proxy-user"></a><h3>The <code class="literal">“proxy-user”</code> property</h3> 242<pre class="programlisting"> “proxy-user” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> 243<p>Proxy user name to use for proxy authentication.</p> 244<p>Flags: Read / Write</p> 245<p>Default value: NULL</p> 246</div> 247<hr> 248<div class="refsect2"> 249<a name="GstCurlHttpSink--use-content-length"></a><h3>The <code class="literal">“use-content-length”</code> property</h3> 250<pre class="programlisting"> “use-content-length” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> 251<p>Use the Content-Length HTTP header instead of Transfer-Encoding header.</p> 252<p>Flags: Read / Write</p> 253<p>Default value: FALSE</p> 254</div> 255</div> 256</div> 257<div class="footer"> 258<hr>Generated by GTK-Doc V1.28</div> 259</body> 260</html>