Skip to content

Create a simple HTTP client #22

Open

Description

@droidmonkey

It would be great to have a simple HTTP client that is the compliment to the Server. The client would take in a QUrl and create the QTcpSocket and QHttpEngine::Socket to communicate with the server. The client would also automatically handle SSL connections and redirects (with a default maximum).

I am integrating QHttpEngine into KeePassXC to meet Debian library requirements, but the lack of a simple Client module is making it difficult.

Activity

  1. changed the title [-]Create a simple client[/-] [+]Create a simple HTTP client[/+] on Nov 1, 2017
  2. droidmonkey commented on Nov 3, 2017

    @droidmonkey
    Author

    Note: this will actually require modifying Socket such that it acts as a Request or Response Socket. Right now Socket only parses the Request headers as if it was acting for a Server.

  3. nathan-osman commented on Nov 3, 2017

    @nathan-osman
    Member

    Yes, and I would probably consider splitting the class up at that point. There would be a base class Socket and two classes that derive from it, ServerSocket and ClientSocket. That way the common functionality could remain where it is and the parts of the protocol specific to each end would live in their respective classes.

  4. droidmonkey commented on Nov 3, 2017

    @droidmonkey
    Author

    If you don't mind I'm going to open several minor issues and suggestions as I learn more about your code. I'd be willing to help fix them as well.

  5. nathan-osman commented on Nov 7, 2017

    @nathan-osman
    Member

    Awesome, that sounds great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions