Loading via http

About Monkey 2 Forums Monkey 2 Programming Help Loading via http

This topic contains 3 replies, has 2 voices, and was last updated by  nerobot 2 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5986

    nerobot
    Participant

    Is there simple way to load from http?

    I looked at modulemanager code and found wget / curl usage there. This need to save to file first…

    Will use this way until we have one more simplier.

    #5991

    Mark Sibly
    Keymaster

    IMO , wget is the best way to do http requests right now (and IMO it’s very simple to use) as it deals with the 1001 ‘little issues’ to do with contacting a server.

    I have tried to write HttpRequest modules on top of TCP before, and it always ‘sort of’ works but there’s always a server out there that doesn’t implement RFC blah123456 properly, or something to do with proxies or https or ipv6 that’ll trip it up. In other words, it’s a big job that requires a lot of http/tcp experience, something (along with time) I just don’t have.

    Next thing to try would probably be to get libcurl building as a module – feel free to give this a go! It has a simple ‘C’ API that should be relatively straightforward to implement. Personally, I’m fine with wget for now so a libcurl module is down the list priority wise (for me anyway) sorry.

    #5996

    nerobot
    Participant

    Thanks Mark.

    #6021

    nerobot
    Participant

    One note about wget.exe (and all execs in the project) – there is cool app UPX (the Ultimate Packer for eXecutables), I use it for reduce size of .exe.

    wget size is 2,9 mb, after upx – 1 mb. not big benefit but why not.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.