Git Product home page Git Product logo

yahc's Introduction

Tavis-CI Build Status

YAHC on MetaCPAN

YAHC - Yet another HTTP client

Features:

  • minimalistic HTTP client
  • managing pool of HTTP requests
  • each connection is async
  • user controls connections behavior
  • support of various retry techincs
  • support backoff
  • support SSL

The code is under development. Changes to the interfaces are possible without notice.

yahc's People

Contributors

arpiagar avatar filabrazilska avatar hugmeir avatar ikruglov avatar neilb avatar qrovira avatar rgs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

yahc's Issues

HTTP data sent to HTTPS protocol

I send the following request using HTTPS protocol, however, the server replies that it receives HTTP requests instead of HTTPS:

$request = {
          'method' => 'GET',
          'ssl_options' => {
                             'SSL_server' => 1,
                             'SSL_hostname' => $hostname,
                             'SSL_verifycn_scheme' => 'https',
                             'SSL_verifycn_name' => $hostname
                           },
          'port' => 443,
          'scheme' => 'https',
          'query_string' => undef,
          'callback' => $callback,
          'path' => $request_url,
          'head' => [
                      'Accept',
                      'application/vnd.api+json',
                      'X-PONAPI-Client-Version',
                      '1.0',
                      'X-PONAPI-Escaped-Values',
                      '1'
                    ],
          'host' => $hostname
        };

Server replies with:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
 Instead use the HTTPS scheme to access this URL, please.<br />
</p>
<hr>
<address>Apache/2.4.10 (Debian) Server at solsa.crystallography.net Port 443</address>
</body></html>

This seems to be the symptom of an HTTP request to a HTTPS port. I am using YAHC 0.035.

Contradicting licensing statements

There seems to be contradicting licensing statements:

  • META.yml states that the source is licensed under Artistic license
  • LICENSE states that the source is licensed under MIT by Kang-min Liu

Which of these statements is correct?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.