Forbidden, but why?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Forbidden, but why?

Aelxander Schwarz
Hey NG.
I tried this:

http://wiki.local/wiki/api.php?action=query&format=xml&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg

But I get only an Forbidden Exception:

API must be accessed through the primary script entry point.

I have no idea. Have you one?

Sincerely Alex




_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Forbidden, but why?

Roan Kattouw
Aelxander Schwarz schreef:

> Hey NG.
> I tried this:
>
> http://wiki.local/wiki/api.php?action=query&format=xml&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg
>
> But I get only an Forbidden Exception:
>
> API must be accessed through the primary script entry point.
>
> I have no idea. Have you one?
>
> Sincerely Alex
Do you have any rewrite rules or stuff like that? Please ensure that
you're accessing api.php at its proper URL (i.e. "where it actually is",
without the rewrites). You can check this by editing a page and looking
at the URL, which will be something like
http://wiki.local/w/index.php?action=edit&title=Foo . Replace index.php
with api.php and see if that works. If it still doesn't, you need to
'expose' your wiki root directory as follows:

- Make the wiki root (the directory that contains index.php and api.php)
accessible as e.g. http://wiki.local/w/
- Use an Alias or a rewrite rule to rewrite /wiki/Foo to
/w/index.php?title=Foo

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Forbidden, but why?

Bryan Tong Minh
In reply to this post by Aelxander Schwarz
On Mon, Jul 14, 2008 at 11:55 AM, Aelxander Schwarz <[hidden email]> wrote:

> Hey NG.
> I tried this:
>
> http://wiki.local/wiki/api.php?action=query&format=xml&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg
>
> But I get only an Forbidden Exception:
>
> API must be accessed through the primary script entry point.
>
> I have no idea. Have you one?
>
> Sincerely Alex
>
>
>
>
> _______________________________________________
> Mediawiki-api mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
What webserver are you using?

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Forbidden, but why?

Aelxander Schwarz
>> Mediawiki-api mailing list
>> [hidden email]
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>>
> What webserver are you using?

This is running on my Linux server
Produkt         Version
MediaWiki     1.12.0
PHP                5.1.2 (apache2handler)
MySQL          5.0.18




_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api