Native Sockets and HTTP/S

Home Forums kbmMW Native Sockets and HTTP/S

Viewing 2 reply threads
  • Author
    Posts
    • #56773
      Babis Michael
      Participant

      Hello,

      Is it possible to implement a simple HTTP/S using native sockets ? (eg. to get url contents)

      Thank you

    • #56780
      kimbomadsen
      Keymaster

      Yes,

      There is actually a sample included doing exactly that… (and a bit more showing Websocket support).

      /Kim

    • #56787
      Babis Michael
      Participant

      Well HTTP protocol not supported so i can’t download a file! 🙁

      • #56815
        kimbomadsen
        Keymaster

        ?? Not understood.

        What do you mean?

        /Kim

        • #56823
          Babis Michael
          Participant

          I mean i change the transport portocol to HTTP but it doesn’t accept it! (or i shouldn’t ?)
          IOW, all i want is to download a file from a HTTPS source to a stream using native transports!
          eg. https://www.mysite.com/myfile.zip with TLS 1.2/1.3

          Thanks

          • #56824
            kimbomadsen
            Keymaster

            Hi,

            Just set it to REST.

            It supersedes HTTP.

            /Kim

          • #56825
            Babis Michael
            Participant

            Hello,

            Well it’s a server transport not client and i also i don’t understand how to download a file from a HTTPS source using this.

            I would appreciate any example!

            Thank you

          • #56826
            kimbomadsen
            Keymaster

            Hi,

            Ok… so you want to download a file using kbmMW from another, non kbmMW HTTPS site?
            kbmMW primarily focus on the server side of things when we are talking about HTTP/REST etc. so it does not include a generic HTTP client side component as it is today.
            However, now that we have a native socket library that is getting to be stable included, it is something that I most likely will put some focus on in the future, as client/consumer side support for various things is a missing feature.

            /Kim

          • #56827
            Babis Michael
            Participant

            Well, it’s up to you but those native sockets kicks ass! 🙂

            So having a basic command handler class would be nice to create a lot of Server/Client Protocols too (eg. IMAP/POP3 etc)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.