How to retrieve image with Html
-
Hi all, I am planning to make a simple proxy server and i have been trying to retrieve the contents of a web page via Socket and send the display (NetworkStream.Flush) to a client browser. the html contents are being displayed properly but the images are not there. even the httpWebResponse.ContentLength shows the length of html content only. someone plz tell me how to retrieve the images along with html using HttpWebRequest so that the page displays properly. Thanks in advance.
-
Hi all, I am planning to make a simple proxy server and i have been trying to retrieve the contents of a web page via Socket and send the display (NetworkStream.Flush) to a client browser. the html contents are being displayed properly but the images are not there. even the httpWebResponse.ContentLength shows the length of html content only. someone plz tell me how to retrieve the images along with html using HttpWebRequest so that the page displays properly. Thanks in advance.
If read through these forums you will see that re-asking the same question, even if it is re-phrased, doesn't help.
-
Hi all, I am planning to make a simple proxy server and i have been trying to retrieve the contents of a web page via Socket and send the display (NetworkStream.Flush) to a client browser. the html contents are being displayed properly but the images are not there. even the httpWebResponse.ContentLength shows the length of html content only. someone plz tell me how to retrieve the images along with html using HttpWebRequest so that the page displays properly. Thanks in advance.
Bluebamboo wrote:
retrieve the images along with html
Mark is correct, besides HTTP does not work that way. Perhaps you should do some studying on the subject prior to attempting development? :sigh:
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
-
If read through these forums you will see that re-asking the same question, even if it is re-phrased, doesn't help.
hi Mark, actually, i has searched lots of forums, but i got nothing, i believe it is a quite common question, but i really canot find its answer. if you know any relevant URL resources, plz tell me. many thanks
-
Bluebamboo wrote:
retrieve the images along with html
Mark is correct, besides HTTP does not work that way. Perhaps you should do some studying on the subject prior to attempting development? :sigh:
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
sorry about the re-ask. but i really need help, and i am fastened on this problem long time~~ A question is really confusing me , how does a proxy program work that way when it responses the content of webpage with images to client explorer:confused:
-
sorry about the re-ask. but i really need help, and i am fastened on this problem long time~~ A question is really confusing me , how does a proxy program work that way when it responses the content of webpage with images to client explorer:confused:
I am not trying to be rude but HTTP is a fairly large protocol and using a forum is not the way to learn it. Go and study the HTTP protocol so that you "know" what you need to develop before you start writing code. try Google: HTTP protocol tutorial good luck :)
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
-
I am not trying to be rude but HTTP is a fairly large protocol and using a forum is not the way to learn it. Go and study the HTTP protocol so that you "know" what you need to develop before you start writing code. try Google: HTTP protocol tutorial good luck :)
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
good suggetion for me thank a lot:)