LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get html page

Hi!

I have LV 6.02 (without Internet Toolset).
Is is possible get html page from web-server?

I trying so:

1. TCP Open Connection. - OK
2. TCP Write ( string parameter: GET / HTTP/1.0)
web server log : 127.0.0.1 - - [16/Aug/2002:12:48:44 +0300] "GET / HTTP/1.0"
200 1241
3. and question: what is next step?

Deniss Karai
0 Kudos
Message 1 of 3
(2,865 Views)
The next step is to keep doing TCP reads until the connection gets closed (error result), or you have all the expected data, then close the connection ID.
Your server might require a "\r\n\r\n" at the end of your GET statement too!
0 Kudos
Message 2 of 3
(2,865 Views)
Deniss,

You are making it too hard on yourself.

Instead, go to David Moore's website http://www.mooregoodideas.com. In the Free Downloads area you will find a tool called WinInet Driver. WinInet Easy Get URL.vi is the VI that you will want to use.

Good Luck,

Jim
0 Kudos
Message 3 of 3
(2,865 Views)