TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Alex
NA
2
7.2k
The Problem with using Wiki API in C#
Apr 30 2011 6:26 AM
Hello to everyone! Recently I've begun to wtite a small project in C# for creating ontologies from Wki. I'm using the Wiki api at the moment, but permanently got an error( Here is a code and an error:
<code>
System.Net.ServicePointManager.Expect100Continue = false;
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create("http://en.wikipedia.org/w/api.php?action=query&titles=Car");
using (HttpWebResponse response = (HttpWebResponse)myRequest.GetResponse())
{
string ResponseText;
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{
ResponseText = reader.ReadToEnd();
}
SearchString.Text = ResponseText;
}
</code>
and the error is
The remote server returned error 403.
Reply
Answers (
3
)
Dataview RowFilter using date range
Embed C# email