Thanks that helped


From: [] On Behalf Of Soxred93
Sent: Wednesday, April 28, 2010 9:52 PM
To: MediaWiki API announcements & discussion
Subject: Re: [Mediawiki-api] The remote server returned an error: (403) Forbidden.


You need to set a user-agent before your request.




On Apr 28, 2010, at 10:39 PM, Rojan Ulak wrote:

i'm trying to run this query from my .net code and i'm getting 403 Forbidden message, this was working fro me last month i tested it.

 WebClient cleint = new WebClient();
            cleint.BaseAddress = "";
            string url = @"w/api.php?action=query&list=categorymembers&cmtitle=Category:Physics";
            string htmlCode = cleint.DownloadString(url);    //This is where i get the Exception.

Any Idea Guys?

The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.


Mediawiki-api mailing list