August 7th, 2003, 11:54 AM
web output to variable?
Ok, let me know if this makes sense. I have a webpage that i want to put the output of into a c++ variable. No webforms or anything like that, just like when i go to the webpage i want all the txt that is show into a variable. In perl its like this:
August 7th, 2003, 12:54 PM
you have to open a socket, connect to port 80 on the webserver, send a standard http request 'GET /index.hmtl HTTP/1.1\nHost:www.site.com\r\n', and then recv() the response. i bet you really appreciate perl now? :D
August 7th, 2003, 12:56 PM
yet another reason to hate microsoft! i wish i could compile perl into .exe's!
August 7th, 2003, 01:54 PM
you can. go search in the perl forum there is some way to do that i just dont remember how. but to do it in C wouldn't be hard at all really