[Solved]How to parse a URL in C++ using sscanf() [modified]
-
In my program, i want to parse the complete URL string into tokens of hostname, port, file, querystring parameters?. Is there any generic recommended way of doing it , or any libraries available?
modified on Monday, August 9, 2010 10:16 AM
should be simple, or look at this answer on SO : http://stackoverflow.com/questions/726122/best-ways-of-parsing-a-url-using-c[^] M.
Watched code never compiles.
-
In my program, i want to parse the complete URL string into tokens of hostname, port, file, querystring parameters?. Is there any generic recommended way of doing it , or any libraries available?
modified on Monday, August 9, 2010 10:16 AM
Have you tried
UrlGetPart()
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Have you tried
UrlGetPart()
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius