Hi, all
Please CC me when you reply. I'm not subscribed to this list.
I have two questions:
1) I am writing a C++ program that calls wget using execv. After wget gets the
requested page, it does not return to my program to excute the rest of my program
after the call. Here's what my code looks like:
char* arg_list[] = {"wget", args, NULL};
int result = execv("wget.exe", arg_list);
// rest of my code
.....
As noted above, after execv runs wget, it does not return to execute the rest of my
program. Does anyone know how to fix this?
2) When I use wget to get the following url, it sometimes (not all the time!) gives me
the error below:
C:\>wget -O test.html "http://screen.yahoo.com/b?dvy=2/100&pe=0/200&b=1&z=d
vy&db=stocks&vw=1"
--23:24:57-- http://screen.yahoo.com:80/b?dvy=2/100&pe=0/200&b=1&z=dvy&db=stock
s&vw=1
=> `test.html'
Connecting to screen.yahoo.com:80... connected!
HTTP request sent, awaiting response...
End of file while parsing headers.
Giving up.
The page I requested is not downloaded. But sometimes it works. Any ideas how to fix
this?
Thanks in advance!
David
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!