Closed GoogleCodeExporter closed 9 years ago
Original comment by martin.o...@gmail.com
on 20 Sep 2006 at 11:23
Original comment by martin.o...@gmail.com
on 20 Sep 2006 at 11:23
Ali emailed:
Martin,
I found the solution. After the following line throws an exception for
"400 invalid request",
HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();
read the data in the catch block like this:
catch (WebException WebExcp)
{
if(WebExcp.Response!=null)
{
HttpWebResponse HttpWResponse = (HttpWebResponse)WebExcp.Response;
StreamReader sr = new
StreamReader(HttpWResponse.GetResponseStream(), encode);
//Convert the stream to a string
string errorXML = sr.ReadToEnd();
sr.Close();
}
/Ali
Original comment by moman...@google.com
on 28 Oct 2006 at 12:20
Original comment by martin.o...@gmail.com
on 9 Dec 2006 at 10:24
Original issue reported on code.google.com by
moman...@colspace.com
on 14 Sep 2006 at 5:29