1. 24 Mar, 2016 1 commit
    • Martin Storsjö's avatar
      avio: Copy URLContext generic options into child URLContexts · fab8156b
      Martin Storsjö authored
      Since all URLContexts have the same AVOptions, such AVOptions
      will be applied on the outermost context only and removed from the
      dict, while they probably make sense on all contexts.
      
      This makes sure that rw_timeout gets propagated to the innermost
      URLContext (to make sure it gets passed to the tcp protocol, when
      opening a http connection for instance).
      
      Alternatively, such matching options would be kept in the dict
      and only removed after the ffurl_connect call.
      Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
      fab8156b
  2. 22 Feb, 2016 2 commits
    • Anton Khirnov's avatar
      urlprotocol: receive a list of protocols from the caller · 8c0ceafb
      Anton Khirnov authored
      This way, the decisions about which protocols are available for use in
      any given situations can be delegated to the caller.
      8c0ceafb
    • Anton Khirnov's avatar
      lavf: reorganize URLProtocols · 2758cded
      Anton Khirnov authored
      Instead of a linked list constructed at av_register_all(), store them
      in a constant array of pointers.
      
      Since no registration is necessary now, this removes some global state
      from lavf. This will also allow the urlprotocol layer caller to limit
      the available protocols in a simple and flexible way in the following
      commits.
      2758cded
  3. 30 Jul, 2015 1 commit
  4. 19 Apr, 2015 1 commit
  5. 14 Feb, 2015 1 commit
  6. 15 Aug, 2014 2 commits
  7. 13 Aug, 2014 4 commits
  8. 03 Aug, 2014 1 commit
    • Luca Barbato's avatar
      http: Refactor http_open_cnx · 6a463e7f
      Luca Barbato authored
      Split return value handling from the actual opening.
      
      Incidentally fixes the https -> http redirect issue reported by
      Compn on behalf of rcombs.
      
      CC: libav-stable@libav.org
      6a463e7f
  9. 23 Jul, 2014 1 commit
  10. 22 Jul, 2014 1 commit
  11. 21 Jul, 2014 2 commits
  12. 12 Mar, 2014 2 commits
  13. 11 Mar, 2014 11 commits
  14. 22 Nov, 2013 3 commits
  15. 14 Oct, 2013 1 commit
  16. 13 Oct, 2013 2 commits
    • Martin Storsjö's avatar
      http: Support auth method detection for POST · 71549a85
      Martin Storsjö authored
      Inspired by a patch by Jakob van Bethlehem. But instead of doing
      an empty POST first to trigger the WWW-Authenticate header (which
      would succeed if no auth actually was required), add an Expect:
      100-continue header, which is meant to be used exactly for
      cases like this.
      
      The header is added if doing a post, and the user has specified
      authentication but we don't know the auth method yet.
      
      Not all common HTTP servers support the Expect: 100-continue header,
      though, so we only try to use it when it really is needed. The user
      can request it to be added for other POST requests as well via
      an option - which would allow the caller to know immediately that
      the POST has failed (e.g. if no auth was provided but the server
      required it, or if the target URL simply doesn't exist).
      
      This is only done for write mode posts (e.g. posts without pre-set
      post_data) - for posts with pre-set data, we can just redo the post
      if it failed due to 401.
      Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
      71549a85
    • Martin Storsjö's avatar
      http: Add an option for forcing basic authentication · eb8b05a3
      Martin Storsjö authored
      The default is to autodetect the auth method. This does require one
      extra request (and also closing and reopening the http connection).
      For some cases such as HTTP POST, the autodetection is not handled
      properly (yet).
      
      No option is added for digest, since this method requires getting
      nonce parameters from the server first and can't be used straight
      away like Basic.
      Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
      eb8b05a3
  17. 26 Sep, 2013 1 commit
  18. 28 Jul, 2013 1 commit
    • Zhang Rui's avatar
      http: Support reading gzip/deflate compressed data · 0f51c398
      Zhang Rui authored
      Derived from VLC's http module.
      Original authors:
        Antoine Cellerier <dionoea@videolan.org>
        Sébastien Escudier <sebastien-devel@celeos.eu>
        Rémi Duraffort <ivoire@videolan.org>
        Rémi Denis-Courmont <remi@remlab.net>
        Francois Cartegnie <fcvlcdev@free.fr>
      
      Normally, http servers shouldn't send this to us since we
      don't advertise it with an Accept-Encoding header, but some
      servers still do it anyway.
      Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
      0f51c398
  19. 07 Mar, 2013 1 commit
  20. 27 Feb, 2013 1 commit
    • Martin Storsjö's avatar
      lavf: Handle the environment variable no_proxy more properly · de9cd1b1
      Martin Storsjö authored
      The handling of the environment variable no_proxy, present since
      one of the initial commits (de6d9b64), is inconsistent with
      how many other applications and libraries interpret this
      variable. Its bare presence does not indicate that the use of
      proxies should be skipped, but it is some sort of pattern for
      hosts that does not need using a proxy (e.g. for a local network).
      
      As investigated by Rudolf Polzer, different libraries handle this
      in different ways, some supporting IP address masks, some supporting
      arbitrary globbing using *, some just checking that the pattern matches
      the end of the hostname without regard for whether it actually is
      the right domain or a domain that ends in the same string.
      
      This simple logic should be pretty similar to the logic used by
      lynx and curl.
      Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
      de9cd1b1