Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libcurl to big for tiny flash router (4MB) #13

Open
nstrelow opened this issue Nov 24, 2018 · 3 comments · May be fixed by #14
Open

Libcurl to big for tiny flash router (4MB) #13

nstrelow opened this issue Nov 24, 2018 · 3 comments · May be fixed by #14
Labels
enhancement New feature or request

Comments

@nstrelow
Copy link

Curl is an awesome tool. Sadly all the dependencies needed, make it so I cannot build an image anymore which is under 4MB, because of a few 200KB. Even throwing out ipv6, opkg and other unneeded things, I could not get it to compile below 4MB.

I will try to solve it myself by replacing the curl calls with something else. I hope that uclient-fetch will support the calls, as this is included in most builds and is suppost to be "a tiny wget replacement"

@mueslo
Copy link
Owner

mueslo commented Nov 24, 2018

If you manage to get it working, feel free to submit a PR. I'm always interested in reducing the footprint.

@nstrelow
Copy link
Author

And no, sadly uclient-fetch does not support headers.
At least it only has these options:

Options:
        -4                              Use IPv4 only
        -6                              Use IPv6 only
        -q                              Turn off status messages
        -O <file>                       Redirect output to file (use "-" for stdout)
        -P <dir>                        Set directory for output files
        --user=<user>                   HTTP authentication username
        --password=<password>           HTTP authentication password
        --user-agent|-U <str>           Set HTTP user agent
        --post-data=STRING              use the POST method; send STRING as the data
        --spider|-s                     Spider mode - only check file existence
        --timeout=N|-T N                Set connect/request timeout to N seconds
        --proxy=on|off|-Y on|off        Enable/disable env var configured proxy

@nstrelow
Copy link
Author

nstrelow commented Dec 4, 2018

Netcat is the way to go!
It is so bare, but will manage exactly what we need and is already included.
https://arpitbhayani.me/techie/rest-the-hard-way-with-netcat.html

Will make a PR if I find the time

@nstrelow nstrelow linked a pull request Dec 5, 2018 that will close this issue
@mueslo mueslo added the enhancement New feature or request label Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants