home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Area 51 - Testing Area
Last.FM Rework and Auto DJ mode
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sebastiii" data-source="post: 1045952" data-attributes="member: 60104"><p>So i think it crash here : </p><p>[CODE]/// <summary></p><p> /// Attempt to get XML web response via HTTP</p><p> /// </summary></p><p> /// <param name="querystring">Querystring to be passed to webservice</param></p><p> /// <param name="httpMethod">GET or POST</param></p><p> /// <param name="useHttps">Whether to use HTTPS</param></p><p> /// <returns>The xml returned by Webservice</returns></p><p> /// <exception cref="LastFMException">Details of last.fm error or will wrap actual exception as inner exception</exception></p><p> private static XDocument GetXml(string querystring, string httpMethod, bool useHttps)</p><p> {</p><p> HttpWebResponse response;</p><p> XDocument xDoc;</p><p> var url = useHttps ? BaseURLHttps : BaseURL;</p><p> if (httpMethod == "GET")</p><p> {</p><p> url = url + "?" + querystring;</p><p> }</p><p></p><p> bool webExceptionStatus = false;</p><p> var postArray = Encoding.UTF8.GetBytes(querystring);</p><p> var request = (HttpWebRequest) WebRequest.Create(url);</p><p> request.Method = httpMethod;</p><p> request.ServicePoint.Expect100Continue = false;</p><p> if (httpMethod == "POST")</p><p> {</p><p> request.ContentType = "application/x-www-form-urlencoded";</p><p> request.ContentLength = postArray.Length;</p><p> var s = request.GetRequestStream();</p><p> s.Write(postArray, 0, postArray.Length);</p><p> s.Close();</p><p> }[/CODE]</p><p></p><p>Can you try attached bin ?</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1045952, member: 60104"] So i think it crash here : [CODE]/// <summary> /// Attempt to get XML web response via HTTP /// </summary> /// <param name="querystring">Querystring to be passed to webservice</param> /// <param name="httpMethod">GET or POST</param> /// <param name="useHttps">Whether to use HTTPS</param> /// <returns>The xml returned by Webservice</returns> /// <exception cref="LastFMException">Details of last.fm error or will wrap actual exception as inner exception</exception> private static XDocument GetXml(string querystring, string httpMethod, bool useHttps) { HttpWebResponse response; XDocument xDoc; var url = useHttps ? BaseURLHttps : BaseURL; if (httpMethod == "GET") { url = url + "?" + querystring; } bool webExceptionStatus = false; var postArray = Encoding.UTF8.GetBytes(querystring); var request = (HttpWebRequest) WebRequest.Create(url); request.Method = httpMethod; request.ServicePoint.Expect100Continue = false; if (httpMethod == "POST") { request.ContentType = "application/x-www-form-urlencoded"; request.ContentLength = postArray.Length; var s = request.GetRequestStream(); s.Write(postArray, 0, postArray.Length); s.Close(); }[/CODE] Can you try attached bin ? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
Last.FM Rework and Auto DJ mode
Contact us
RSS
Top
Bottom