javascript - How to send to a web-server request for performing js-function under c#? -
First of all, English is my foreign language under C # I receive an audio file (stream) with the accent of some words. Trying to send a post http request to forvo.com (bank with the pronunciation of words) For example, I want to click on button 1 and want to hear the word "stack" From the .com site. I have a code for this:
use (var wb = new webclient ()) {var data = new nameValueCollection (); Data ["LANGUAGE_ID"] = "3 9"; Data ["WORD"] = "Monday"; // This tag is not effective for requesting // var response = wb.UploadValues ("http://www.forvo.com/search/", "POST", data); Byte [] response = wb.UploadValues ("http://www.forvo.com/search/data", "POST", data); File. WritAllBytes (Path.GetDirectoryName (application.ExecutablePath) + "\\ fi2le.html", feedback); }
With that action, I am trying to get the link for an audio file. After viewing a file.html I see these strings
& Lt; / A & gt; & Lt; A href = "/ word / data / # n" title = "data pronunciation" & gt; Data & lt; / A & gt; And others are looking similar
What can I do with these JS-Functions or what is it?
I'm a newbie in web programming, and I do not know anything about JS. And I know that forvo.com has its own API for things like me, but I'm trying to make it without the API.