Avatar of kiran_madala
kiran_madala

asked on 

exctract Hostname and Path from url

Hi,

Trying to find an easy way to split a URL and extract the host name and path. I tried to understand the InternetCrackUrl function. The MSDN article seems pretty vague considering I am new to vc++.  It would be great if some one could get me to a  solution. I am using MFC.

Thank you.
System ProgrammingC++C

Avatar of undefined
Last Comment
kiran_madala
ASKER CERTIFIED SOLUTION
Avatar of ilava
ilava

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

InternetCrackUrl Function
Cracks a URL into its component parts.
http://msdn.microsoft.com/en-us/library/aa384376(VS.85).aspx
Avatar of kiran_madala
kiran_madala

ASKER

The explanation in the link is very easy to understand
C++
C++

C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.

58K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo