curl / Mailing Lists / curl-users / Single Mail


301 Moved Permanently ???

From: ToddAndMargo <>
Date: Fri, 17 Aug 2018 18:45:34 -0700

Hi All,

I get the whole page from Firefox, but I get this from curl:

  $ curl -o -
  <head><title>301 Moved Permanently</title></head>
  <body bgcolor="white">
  <center><h1>301 Moved Permanently</h1></center>

Firefox's Web Developer, Network , copy as cURL, gives

curl '' -H 'User-Agent:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101
Firefox/61.0' -H 'Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H
'Accept-Language: en-US,en;q=0.5' --compressed -H 'Cookie:
PHPSESSID=oq8mi6b9pu6c6j5s8m45fite45' -H 'Connection: keep-alive' -H
'Upgrade-Insecure-Requests: 1'

And I can shorten this down to the original and it still
works, for a while.

How do I get curl to work all the time?

Many thanks,

Received on 2018-08-18