12-12-2012
C++: get html page and store it in string
Hello all,
I want to write c++ program which will get html page content, put it in std::string variable, and finally print it to stdout.
Which tool can I use to get this effect?
Is cUrl good solution ?
Thank you for your time.
10 More Discussions You Might Find Interesting
1. Solaris
Hi All,
In our unix server we have an apache web server running. I can access the default apache web page from my windows machine.
Now, I want to create my own webpage. Therefore I created webpage at /export/home/myname/test.html file. Where do I need to place this file and what do I need... (0 Replies)
Discussion started by: pkm_oec
0 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
In our unix server we have an apache web server running. I can access the default apache web page from my windows machine.
Now, I want to create my own webpage. Therefore I created webpage at /export/home/myname/test.html file. Where do I need to place this file and what do I need... (2 Replies)
Discussion started by: pkm_oec
2 Replies
3. Web Development
I am planning to create an html page that will count number of connected ports, challenge for me is how to put it in a page. Thanks! (1 Reply)
Discussion started by: webmunkey23
1 Replies
4. Web Development
I want to create a login page in HTML which is hosted on apache server.
The login page first authenticate the user and then directed to a form which in turn run a script on the server.
I want to make login page without php or jsp.
Please advice. (13 Replies)
Discussion started by: ravi18s
13 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
Thanks for reading.
I am not sure if I am asking this in the correct group. But here it goes:
There is a shell script which does some system checks and creates an html file called system_summary.html on my Red Hat machine say in /reports directory every hour.
Now I want to view it... (1 Reply)
Discussion started by: deepakgang
1 Replies
6. Red Hat
Hi All,
Thanks for reading.
I am not sure if I am asking this in the correct group. But here it goes:
There is a shell script which does some system checks and creates an html file called system_summary.html on my Red Hat machine say in /reports directory every hour.
Now I want to view it... (6 Replies)
Discussion started by: deepakgang
6 Replies
7. Shell Programming and Scripting
for example, I have an html file, contain
<a href="http://awebsite" id="awebsite" class="first">website</a>and sometime a line contains more then one link, for example
<a href="http://awebsite" id="awebsite" class="first">website</a><a href="http://bwebsite" id="bwebsite"... (36 Replies)
Discussion started by: 14th
36 Replies
8. Shell Programming and Scripting
Greeting all,
Not sure anyone tested to send out email with HTML page as attachment from Shell Script ?
I know if I use uuencode file.html approach, the mail receive in attachment is empty.
So I guess uuencode cannot be use for the html code. Appreciate if anyone can share the code to... (0 Replies)
Discussion started by: ckwan
0 Replies
9. Shell Programming and Scripting
Hello,
I need to monitor an html web page for ANY changes and should be able to know if it's modified or not (since last query). I do not need what modifications but just notification is enough.
This is a simple web page and I don't need to parse the links any further.
Is it possible to do... (10 Replies)
Discussion started by: prvnrk
10 Replies
10. Shell Programming and Scripting
Hi All,
In our unix server we have an apache web server running.
Now, I want to create my own webpage. Therefore I created webpage at /export/home/test.html file. Where do I need to place this file and what do I need mention this page in my web browser to access it.
Without apache... (1 Reply)
Discussion started by: Arasu
1 Replies
LEARN ABOUT DEBIAN
ns_geturl
ns_geturl(3aolserver) AOLserver Built-In Commands ns_geturl(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
ns_geturl - commands
SYNOPSIS
ns_geturl URL ?headersSetId?
_________________________________________________________________
DESCRIPTION
This command retrieves the contents of the specified URL. The URL must be a remote http server, or a file relative to the pageroot (begins
with /). It does not handle a relative request or follow redirects. The headerSetId option is a variable containing an ns_set Id (not
expanded with a $) used to store the remote server headers (see example). ns_geturl only support HTTP version 1.0.
EXAMPLES
set page [ns_geturl "www.aolserver.com"]
ns_return 200 text/html $page
This fetches the contents of www.aolserver.com and returns that page to the client.
set headers [ns_set new]
set page [ns_geturl "www.aolserver.com" headers]
for {set i 0} {$i < [ns_set size $headers]} {incr i} {
ns_puts "Key: [ns_set key $headers $i]"
ns_puts "Value: [ns_set value $headers $i]"
}
This time, a blank headerset is passed to ns_geturl so we can retrieve the headers of the remote page, which we print out to the client.
set file [ns_geturl "/foo/bar.html"]
ns_return 200 text/html $file
This example fetches the /foo/bar.html file relative to the pageroot and returns it to the client.
SEE ALSO
nsd(1), info(n), ns_set(n), ns_httpget(n)
KEYWORDS
AOLserver 4.0 ns_geturl(3aolserver)