How do i make vb browser only download txt

Microsoft Visual studio 2008 professiona...
June 10, 2011 at 14:35:29
Specs: Windows 7
Make Vb browser only download txt, as a means to speed it up?

See More: How do i make vb browser only download txt

Report •

#1
June 10, 2011 at 16:22:45
What is a VB Browser?

What you get from a Web site is dependant on the web site. Unless the web site has a text mode you are going to get HTML. The user has no control over that.

Stuart


Report •

#2
June 10, 2011 at 17:00:37
The user may not, but the programmer does. Your input is welcome :)
But if you don't know what a vb browser is, then you are obviously ill-equipped to answer my question

Report •

#3
June 11, 2011 at 03:58:23
If by VB Browser you mean a Web Browser programmed with VB, then yes,. It would have been an enormous help to mention that you were programming a browser in the first place and not have to guess. You will learn the in programming, precision is essential, generalisations do not work.

Having said that, my first post still applies, you are dependant on what the site sends you. You only thing the programmer can do is filter out the HTML so only plain text is left and if the web site contains Java scripts you are even more screwed. It is an horrendous job and will definitely slow things down, not speed them up. Web sites do not generally maintain document in both HTML and plain text and besides, a lot of web pages theses days are generated by server side scripts like PHP or Pearl like this one is. To have a set of scripts generating HTML and another set generating plain text to accommodate the rare occasion that someone might want plain text is not something that is generally done..

You will have learnt by now that in order to retrieve a web page you send a request to the server. The server responds by sending you the document requested. There are various parameters that you send relating to the request. Have you ever seen one that request the information in plain text. No you haven't, because they do not exist. Even sites that do make information available in plain text send it encapsulated within HTML via a particular URL and even then the chances are it is UNIX format and you will need to convert it to Windows format, something that regular browsers like Internet Explorer do automatically.

Some web sites have a low res graphics option, some have a mobile device option, but that is entirely dependant on the web-master and if he wishes to provide that facility. You, the client, have no say in the matter, you get what you are given.

That information comes from the experience of programming Web forms and running web site. So if you want answers to your question, it is best no to insult those most likely to answer your question, especially when the misunderstanding was based on a lack of information on your part.

Stuart


Report •

Related Solutions

#4
June 11, 2011 at 13:30:22
There are editors that will strip html code from the downloaded and saved web pages. On some pages you can't decide what to save until most of the page is sent.

If you have a text stream only how will you format it for display.


Report •

#5
June 11, 2011 at 13:55:39
Simple.

Make a tcp connection to Port 80 on the web server. Send the appropriate commands to download the page from the web server. Filter out the content that you don't want and only print the text. Build in code to parse <a> blocks so that you can follow links. You'll probably need to read a few texts on how web servers work before you are competent to do this.

I'll bet your end result ends up much slower than any modern browser (after all, hordes of programmers have spent years perfecting them), but let me know if I'm wrong.


Report •

Ask Question