• Middleware

    Mit cURL weitergeleiteten Seiten (REDIRECT) folgen

    Bei cURL Aufrufen landet man oft auf Seiten, die nur einen REDIRECT auf einen andere Seiten ausführen. < p class=”kasten”> [root@0ccfa08b0829 /]# curl repository/yum>/strong> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="http://repository/yum/">here</a>.</p> </body></html> So funktioniert es: < p class=”kasten”> [root@0ccfa08b0829 /]# curl repository/yum -L <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <title>Index of /yum</title> </head> <body> <h1>Index of /yum</h1> <ul><li><a href="/"> Parent Directory</a></li> <li><a href="nginx-1.12.2-1.el6.ngx.x86_64.rpm"> nginx-1.12.2-1.el6.ngx.x86_64.rpm</a></li> <li><a href="repodata/"> repodata/</a></li> </ul> </body></html>