LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cUrl not behaving the way it used to (https://www.linuxquestions.org/questions/linux-software-2/curl-not-behaving-the-way-it-used-to-4175594633/)

teckk 12-23-2016 01:44 PM

I'm not sure what you are doing. Or are trying to do. curl works fine. Can you replicate this?

Code:

curl --head http://img63.imagegame.com/i/12828/5c5lzwbrpnhn.jpg/img07.jpg
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 175
Content-Type: text/html; charset=utf-8
Date: Fri, 23 Dec 2016 19:40:22 GMT
Location: http://static.hugedomains.com/images/logo_huge_domains.gif
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Connection: keep-alive

I was able to get that with
Code:

curl http://img63.imagegame.com/i/12828/5c5lzwbrpnhn.jpg/img07.jpg -o - > imagegame12128-007.jpg
Code:

file imagegame12128-007.jpg
imagegame12128-007.jpg: HTML document, ASCII text, with CRLF line terminators

Code:

cat imagegame12128-007.jpg
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://static.hugedomains.com/images/logo_huge_domains.gif">here</a>.</h2>
</body></html

Code:

curl http://static.hugedomains.com/images/logo_huge_domains.gif -o - > lhd.gif
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                Dload  Upload  Total  Spent    Left  Speed
100  3654  100  3654    0    0  40387      0 --:--:-- --:--:-- --:--:-- 40600


ondoho 01-01-2017 08:11 AM

Quote:

Originally Posted by L_Carver (Post 5645425)
Double-quoting is a must for my terminal applications; every time when I use single quotes I get cannot stat errors. My terminal apps have been ruined by my bad Cygwin habits, and this isn't the first Linux install this has happened to.

3 weeks and 15 posts later you are telling us this?
:rolleyes:
i suspect your problem has nothing to do with curl.


All times are GMT -5. The time now is 08:30 PM.