How to Checking a URL :Valid or Invalid
Could any body help me. Regarding how to check a URL is
I am using Four functions to check the same.
1) hConnect = WinHttpConnect( hSession, "www.google.co.in",
2) hRequest = WinHttpOpenRequest( hConnect,
pUrl, /// "/sea123rch?
3) bResults = WinHttpSendRequest( hRequest,
0, 0 );
4) bResults = WinHttpReceiveResponse( hRequest, NULL );
Here is my observation when I have given the wrong URL in
WinHttpOpenRequest(..pUrl..), it has to throw the
ERROR_WINHTTP_INVALID_URL or at least WinHttpSendRequest() has to
thorw the Exception but I haven't getting this.
Would I have to set any flag to check URL is valid or not please if
any Sample code would be good.
Can any body please help me out to sort out this problem.
Here is the example for Valid and Invalid URL:
Re: How to Checking a URL :Valid or Invalid
Your question is not about the C++ language. Please post in some
appropriate group. The FAQ lists some possibly appropriate groups.
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
Q: What is the most annoying thing on usenet and in e-mail?
|All times are GMT. The time now is 01:59 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.