CentOS-7: curl & wget only working infrequently, but yum works fine
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Nice thinking. Okay, I used the same Python code as you offered, amending the URL to one which I've previously tried unsuccessfully with curl and wget, and it worked just fine -- fast and complete. In fact I tried it a couple of times to make sure it wasn't a fluke, and it worked just fine each time.
Hmmm. So, I guess that determines something at least, which is useful, as it kinda rules out a bunch of other stuff, but I'm not sure how to use this latest knowledge to effect a solution with non-Python tools such as curl/wget/etc.
I guess there must be some common library or something which the latter is using which isn't playing nicely for some reason, but I've no clue how to figure that out or how to fix it. My first inclination would be simply to ensure that CentOS is up to date, but I regularly do yum updates, and the machine doesn't think there's currently anything to update.
Thank you very much indeed for pointing me in a new direction; am hoping that maybe someone can now help me across the finish line!
What does your /usr/local look like? Do you have anything you built from source in there? Did you build curl or wget from source? Your version of curl is newer than the one in the standard repositories. Assuming a yes, verify the compile time options and try setting LD_LIBRARY_PATH to /usr/local/lib or wherever you put it.
Actually, I don't recall exactly where I got the version of curl from, but it wasn't built from source; the reason it is a very recent version is that - in attempting to find a solution to the download problem - I'd been endeavoring to ensure everything that could possibly be updated was updated (i.e. the problem existed before this most recent version of curl was installed), but obviously it didn't make any difference in the end.
Nothing in /usr/local/ of any consequence (I don't think): /usr/local/src/ is empty, as is /usr/local/lib/.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.