https://bugzilla.wikimedia.org/show_bug.cgi?id=22561

           Summary: Cannot use the API from PHP
           Product: Wikimedia
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: erel...@gmail.com


Some API links, such as the following:

http://he.wikisource.org/w/api.php?action=parse&text=%7B%7B%F6%E9%E8%E5%E8%E9%ED+%F9%EC+%EE%F7%F8%E0%E5%FA+%E2%E3%E5%EC%E5%FA+%F2%EC+%F4%F1%E5%F7%7C%E0%E9%E5%E1%7C%EE%E1%7C-%7C%E9%7C-%7C%7D%7D&redirects=1&format=xml

Work from a browser, but when I try to get them from a PHP script, I get an
error "HTTP/1.0 403 Forbidden", for example with this program:

<?php
print
file_get_contents("http://he.wikisource.org/w/api.php?action=parse&text=%7B%7B%F6%E9%E8%E5%E8%E9%ED+%F9%EC+%EE%F7%F8%E0%E5%FA+%E2%E3%E5%EC%E5%FA+%F2%EC+%F4%F1%E5%F7%7C%E0%E9%E5%E1%7C%EE%E1%7C-%7C%E9%7C-%7C%7D%7D&redirects=1&format=xml";);
 
?>

It worked until about a week or two ago.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to