Click here to Skip to main content
16,016,750 members
Home / Discussions / C#
   

C#

 
GeneralRe: datasets, databinding and dataviews Pin
HappyPaws8-Jun-04 2:39
HappyPaws8-Jun-04 2:39 
GeneralRe: datasets, databinding and dataviews Pin
Heath Stewart8-Jun-04 3:13
protectorHeath Stewart8-Jun-04 3:13 
GeneralUpdate Stored Procedure throws Exception "Expects Parameter..." Pin
STW7-Jun-04 3:05
STW7-Jun-04 3:05 
GeneralRe: Update Stored Procedure throws Exception "Expects Parameter..." Pin
Heath Stewart7-Jun-04 3:42
protectorHeath Stewart7-Jun-04 3:42 
GeneralScrollable control with gradient background Pin
ongo7-Jun-04 3:03
ongo7-Jun-04 3:03 
Generalcode for db acess in C# Pin
Md Saleem Navalur7-Jun-04 2:33
Md Saleem Navalur7-Jun-04 2:33 
GeneralRe: code for db acess in C# Pin
Heath Stewart7-Jun-04 4:05
protectorHeath Stewart7-Jun-04 4:05 
GeneralMalformed Web Response Pin
MrEyes7-Jun-04 2:06
MrEyes7-Jun-04 2:06 
I have written a short piece of code that goes of to a URL and retrieves and XML formatted file. The file that is returned is dicatated by a URL parameter.

If I go directly to the URL in a browser, the XML document is displayed correctly and fully. When I attempt to do this through code the last quarter of the XML string is made up of escaped 0's (i.e. \0)

The code I have is as follows :

string endPoint = "https://myserver/xmlprovider?id=123";
HttpWebRequest samlRequest = (HttpWebRequest)WebRequest.Create(endPoint);
HttpWebResponse samlResponse = (HttpWebResponse)samlRequest.GetResponse();
Stream responseStream = samlResponse.GetResponseStream();
byte[] buffer = new byte[samlResponse.ContentLength];
responseStream.Read(buffer, 0, buffer.Length);
string returnData = System.Text.Encoding.ASCII.GetString(buffer);
responseStream.Close();


Does anybody know what could be causing this?

post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
GeneralRe: Malformed Web Response Pin
Heath Stewart7-Jun-04 3:48
protectorHeath Stewart7-Jun-04 3:48 
Generalarray marshalling from c# to COM Pin
rana747-Jun-04 1:04
rana747-Jun-04 1:04 
GeneralRe: array marshalling from c# to COM Pin
Heath Stewart7-Jun-04 5:36
protectorHeath Stewart7-Jun-04 5:36 
GeneralRe: array marshalling from c# to COM Pin
rana747-Jun-04 18:41
rana747-Jun-04 18:41 
Questionwhich class can analyse HTTP? Pin
Xytme6-Jun-04 23:50
Xytme6-Jun-04 23:50 
AnswerRe: which class can analyse HTTP? Pin
Heath Stewart7-Jun-04 5:24
protectorHeath Stewart7-Jun-04 5:24 
QuestionWhere does PrintPreview store the doc ? Pin
sachinkalse6-Jun-04 23:37
sachinkalse6-Jun-04 23:37 
AnswerRe: Where does PrintPreview store the doc ? Pin
Heath Stewart7-Jun-04 5:28
protectorHeath Stewart7-Jun-04 5:28 
Questionhow to share dll? Pin
khchan6-Jun-04 23:37
khchan6-Jun-04 23:37 
AnswerRe: how to share dll? Pin
bneacetp6-Jun-04 23:49
bneacetp6-Jun-04 23:49 
GeneralRe: how to share dll? Pin
khchan7-Jun-04 5:10
khchan7-Jun-04 5:10 
GeneralRe: how to share dll? Pin
Heath Stewart7-Jun-04 5:42
protectorHeath Stewart7-Jun-04 5:42 
GeneralRe: how to share dll? Pin
LongRange.Shooter8-Jun-04 4:34
LongRange.Shooter8-Jun-04 4:34 
Generalwhich class can analyse HTTP. Pin
Xytme6-Jun-04 23:09
Xytme6-Jun-04 23:09 
GeneralRe: which class can analyse HTTP. Pin
Heath Stewart7-Jun-04 4:52
protectorHeath Stewart7-Jun-04 4:52 
GeneralRe: which class can analyse HTTP. Pin
Xytme7-Jun-04 15:58
Xytme7-Jun-04 15:58 
GeneralRe: which class can analyse HTTP. Pin
Heath Stewart8-Jun-04 2:43
protectorHeath Stewart8-Jun-04 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.