Python requests.get(URL) returns 404 error when using URL with dot

Advertisements I’m trying to get webpage https://finance.yahoo.com/quote/AFLT.ME using Requests library for Python. This link opens well in browser, but results in Error 404 while using this code: import requests r = requests.get(‘https://finance.yahoo.com/quote/AFLT.ME’) I’m pretty sure that the problem is in the dot (.) symbol in the "AFLT.ME" as code works well with URLs without dot… Read More Python requests.get(URL) returns 404 error when using URL with dot

Download multiple URLs with curl without repeating the arguments

Advertisements I’m trying to download multiple URLs using curls: user@PC:~$ curl -LOJ "https://example.com/foo.jpg&quot; "https://example.com/bar.jpg&quot; % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 445 100 445 0 0 517 0 –:–:– –:–:– –:–:– 518 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">&hellip; Read More Download multiple URLs with curl without repeating the arguments

throw 404 error with .htaccess file and php

Advertisements I’ve got url like http://www.web.com/home and http://www.web.com/about with .htaccess file: RewriteEngine On Options +FollowSymLinks ErrorDocument 404 http://www.web.com/page-not-found.html RewriteRule "home" "index.php?c=home&m=main" RewriteRule "about" "index.php?c=home&m=about" If I type something like http://www.web.com/asd, .htaccess will throw 404 error and direct page-not-found.html file But, If I type http://www.web.com/homesss or http://www.web.com/about/a/b/c, the .htaccess will not throw the 404 error How… Read More throw 404 error with .htaccess file and php