## curlsink curlsink — sink that uploads data to a server using libcurl |

## Synopsis

    struct              GstCurlSink;

## Object Hierarchy

      GObject
       +----GstObject
             +----GstElement
                   +----GstBaseSink
                         +----GstCurlSink

## Properties

      "accept-self-signed"       gboolean              : Read / Write
      "content-type"             gchar*                : Read / Write
      "file-name"                gchar*                : Read / Write
      "location"                 gchar*                : Read / Write
      "passwd"                   gchar*                : Read / Write
      "proxy"                    gchar*                : Read / Write
      "proxy-passwd"             gchar*                : Read / Write
      "proxy-port"               gint                  : Read / Write
      "proxy-user"               gchar*                : Read / Write
      "qos-dscp"                 gint                  : Read / Write
      "timeout"                  gint                  : Read / Write
      "use-content-length"       gboolean              : Read / Write
      "user"                     gchar*                : Read / Write

## Description

This is a network sink that uses libcurl as a client to upload data to a server (e.g. a HTTP/FTP server).

### Example launch line (upload a JPEG file to an HTTP server)

    1
    2
    3
    4
    5
    6
    gst-launch filesrc filesrc location=image.jpg ! jpegparse ! curlsink  \
        file-name=image.jpg  \
        location=http://192.168.0.1:8080/cgi-bin/patupload.cgi/  \
        user=test passwd=test  \
        content-type=image/jpeg  \
        use-content-length=false

## Synopsis

### Element Information

plugin | curl
author | Patricia Muscalu <patricia@axis.com>
class | Sink/Network

### Element Pads

name | sink
direction | sink
presence | always
details | ANY

## Details

### struct GstCurlSink

    struct GstCurlSink;

## Property Details

### The `"accept-self-signed"` property

      "accept-self-signed"       gboolean              : Read / Write

Accept self-signed SSL/TLS certificates.

Default value: FALSE

### The `"content-type"` property

      "content-type"             gchar*                : Read / Write

The mime type of the body of the request.

Default value: NULL

### The `"file-name"` property

      "file-name"                gchar*                : Read / Write

The base file name for the uploaded images.

Default value: NULL

### The `"location"` property

      "location"                 gchar*                : Read / Write

URI location to write to.

Default value: NULL

### The `"passwd"` property

      "passwd"                   gchar*                : Read / Write

User password to use for server authentication.

Default value: NULL

### The `"proxy"` property

      "proxy"                    gchar*                : Read / Write

HTTP proxy server URI.

Default value: NULL

### The `"proxy-passwd"` property

      "proxy-passwd"             gchar*                : Read / Write

Proxy user password to use for proxy authentication.

Default value: NULL

### The `"proxy-port"` property

      "proxy-port"               gint                  : Read / Write

HTTP proxy server port.

Allowed values: >= 0

Default value: 3128

### The `"proxy-user"` property

      "proxy-user"               gchar*                : Read / Write

Proxy user name to use for proxy authentication.

Default value: NULL

### The `"qos-dscp"` property

      "qos-dscp"                 gint                  : Read / Write

Quality of Service, differentiated services code point (0 default).

Allowed values: [0,63]

Default value: 0

### The `"timeout"` property

      "timeout"                  gint                  : Read / Write

Number of seconds waiting to write before timeout.

Allowed values: >= 0

Default value: 30

### The `"use-content-length"` property

      "use-content-length"       gboolean              : Read / Write

Use the Content-Length HTTP header instead of Transfer-Encoding header.

Default value: FALSE

### The `"user"` property

      "user"                     gchar*                : Read / Write

User name to use for server authentication.

Default value: NULL