-
March 12th, 2003, 03:03 PM
#1
Net::WebRequest::Crea..web headers?
Hi there,
I dont' really use much of the .net/managed vc code, so I'm still pretty new to it....but I want to access https web sites....
so using the code:
Net::WebRequest* request = Net::WebRequest::Create(S"http://www.microsoft.com");
Net::WebResponse* response = request->GetResponse();
IO::StreamReader* reader = new IO::StreamReader(response->GetResponseStream());
while(true){
String *lpStr = NULL;
lpStr = reader->ReadLine();
if(lpStr == NULL) break;
Console::WriteLine(lpStr);
}
reader->Close();
I can get the web html...is there a further way of getting the web headers....e.g. the content type etc...which is usually at the top of the html code?
And how do I post data in reply to a http web page using .NET code? for example in reply to a POST submission?
Thanx for any tips or ideas...really appreciate it.
Thanx again
Ben
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|