Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralCompilation error CS0006 Pin
thepersonof10-Dec-04 9:00
thepersonof10-Dec-04 9:00 
GeneralRe: Compilation error CS0006 Pin
Judah Gabriel Himango10-Dec-04 12:10
sponsorJudah Gabriel Himango10-Dec-04 12:10 
GeneralRe: Compilation error CS0006 Pin
thepersonof10-Dec-04 23:18
thepersonof10-Dec-04 23:18 
GeneralRe: Compilation error CS0006 Pin
thepersonof11-Dec-04 3:20
thepersonof11-Dec-04 3:20 
GeneralFrames in HTTPWebRequest Pin
JeromeKJerome10-Dec-04 7:08
JeromeKJerome10-Dec-04 7:08 
GeneralRe: Frames in HTTPWebRequest Pin
Heath Stewart10-Dec-04 12:41
protectorHeath Stewart10-Dec-04 12:41 
GeneralRe: Frames in HTTPWebRequest Pin
JeromeKJerome10-Dec-04 14:42
JeromeKJerome10-Dec-04 14:42 
GeneralRe: Frames in HTTPWebRequest Pin
Heath Stewart10-Dec-04 20:24
protectorHeath Stewart10-Dec-04 20:24 
First of all - never use ReadToEnd if you don't know what to expect. 40K may not be a big buffer, but lets say you get back a 1 or 2MB buffer, or even more. You'll read that all into memory? I would hope not.

A stream is just that - a stream. Read-in the stream in blocks as it comes to you.

As far as the problem, it's hard to say if you don't post the HTML (which I thought was the frames page). When you're browser reads a file with frames in it, it parses the location of each frame then requests those files. The same is true for images, script, and other links. Everything you see in your browser - from pages to images to scripts - are separate requests and separate downloads. This is a basic principal of HTTP. You request one file, you get one file.

So, once again you parse that file with the frames to get the other document locations, then make a request for those.

If you're not getting the whole frameset content, then something else is wrong. It's possible that the service is using a browser capacity (browsercap) file and not sending you frames because you don't have a user-agent (an HTTP header that identifies the browser). To get around that and look like Internet Explorer, before you make your request set your HttpWebRequest.UserAgent property to the follow (IE6 on WinXP):
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)
To the server, you look like Internet Explorer and it would give you a frameset page instead of something else. That's assuming that's what's happening.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Frames in HTTPWebRequest Pin
JeromeKJerome11-Dec-04 2:24
JeromeKJerome11-Dec-04 2:24 
GeneralRe: Frames in HTTPWebRequest Pin
Dave Kreskowiak11-Dec-04 4:35
mveDave Kreskowiak11-Dec-04 4:35 
GeneralRe: Frames in HTTPWebRequest Pin
Heath Stewart11-Dec-04 21:51
protectorHeath Stewart11-Dec-04 21:51 
GeneralRe: Frames in HTTPWebRequest Pin
JeromeKJerome14-Dec-04 6:37
JeromeKJerome14-Dec-04 6:37 
GeneralHelp in Delimiter! Pin
ahjiefreak10-Dec-04 5:25
ahjiefreak10-Dec-04 5:25 
GeneralRe: Help in Delimiter! Pin
Alexander Kent10-Dec-04 17:00
Alexander Kent10-Dec-04 17:00 
GeneralHelp in Delimiter! Pin
ahjiefreak10-Dec-04 5:23
ahjiefreak10-Dec-04 5:23 
GeneralRe: Help in Delimiter! Pin
Alexander Kent10-Dec-04 17:00
Alexander Kent10-Dec-04 17:00 
GeneralRe: Help in Delimiter! Pin
ahjiefreak11-Dec-04 2:11
ahjiefreak11-Dec-04 2:11 
GeneralRe: Help in Delimiter! Pin
Alexander Kent11-Dec-04 13:28
Alexander Kent11-Dec-04 13:28 
GeneralRe: Help in Delimiter! Pin
ahjiefreak16-Dec-04 4:48
ahjiefreak16-Dec-04 4:48 
GeneralILDASM and Memory. Some confusion... Pin
...---...10-Dec-04 5:23
...---...10-Dec-04 5:23 
GeneralRe: ILDASM and Memory. Some confusion... Pin
leppie10-Dec-04 5:58
leppie10-Dec-04 5:58 
GeneralRe: ILDASM and Memory. Some confusion... Pin
...---...10-Dec-04 6:39
...---...10-Dec-04 6:39 
GeneralRe: ILDASM and Memory. Some confusion... Pin
Alex Korchemniy10-Dec-04 8:41
Alex Korchemniy10-Dec-04 8:41 
GeneralRe: ILDASM and Memory. Some confusion... Pin
Heath Stewart10-Dec-04 12:46
protectorHeath Stewart10-Dec-04 12:46 
GeneralRe: ILDASM and Memory. Some confusion... Pin
Alex Korchemniy10-Dec-04 13:28
Alex Korchemniy10-Dec-04 13:28 

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.