Board index » delphi » Parse string URL

Parse string URL


2005-11-10 06:16:03 PM
delphi247
Is there an easy way to do this, like in java you create a URL object from a
string and can then query for the domain name etc?
D7 Ent. Thanks.
 
 

Re:Parse string URL

Hello Eric,
my DIHtmlParser suite contains a DIUri unit to deal with these issues
thoroughly. It allows you to separate the various parts of a URL / URI and
also resolve absolute and relative URLs. On top, DIUri is WideString /
Unicode enabled.
An advanced demo exapmle to demonstate and test DIUri is also available.
Download DIHtmlParser from www.yunqa.de/delphi/htmlparser/
Best regards,
Ralf
"Eric Carlson" <XXXX@XXXXX.COM>writes:
Quote
Is there an easy way to do this, like in java you create a URL object from a
string and can then query for the domain name etc?
D7 Ent. Thanks.
---
The Delphi Inspiration
www.yunqa.de/delphi/
 

Re:Parse string URL

"Ralf Junker - www.yunqa.de/delphi/" <delphi.at.yunqa.dot.de@>wrote
in message news:XXXX@XXXXX.COM...
Quote
Hello Eric,

my DIHtmlParser suite contains a DIUri unit to deal with these issues
Download DIHtmlParser from www.yunqa.de/delphi/htmlparser/
Thats bookmarked! Excellent stuff, but not for the current project.
Just the URL parser is all I need - its only the domain name / error
actually. URLs could be just IP addresses
-- EC
 

Re:Parse string URL

Eric Carlson writes:
Quote
Is there an easy way to do this, like in java you create a URL object from a
string and can then query for the domain name etc?
D7 Ent. Thanks.
look in the indy IdURI.pas unit