C++ function to return whether two URLs are on the same domain

已完成 已发布的 Jan 20, 2010 货到付款
已完成 货到付款

Need a C++ function written in Visual Studio 2008 which essentially takes input of two URLs in string format and determines if both URLs are on the same major domain, and the function returns true if they are both on the same major domain.

## Deliverables

Criteria for determining if? two URLs are on the same domain:

The point is to try to find the second-most top level domain. The top level domain being .com, .biz, .org, etc. So, this function would be able to see that <[url removed, login to view]> is on the same domain as <[url removed, login to view]> .

I have a C# function for finding the first level subdomain. Please use that as a guide for building the same type of functionality in this C++ function.

Also, you must handle the case where there is a port number attached to the URL. For instance: [[url removed, login to view]][1], such that the port number add-on does not affect the domain comparison.

C 编程 工程 MySQL PHP 项目管理 软件构架 软件测试

项目ID: #3108803

关于项目

5个方案 远程项目 活跃的Jan 21, 2010

授予:

rjrudman

See private message.

$21.25 USD 在2天内
(13条评论)
2.9

有5名威客正在参与此工作的竞标,均价$32/小时

dvz1

See private message.

$21.25 USD 在2天内
(76条评论)
5.9
russianitgroup

See private message.

$38.25 USD 在2天内
(70条评论)
5.7
GreyHats

See private message.

$38.25 USD 在2天内
(80条评论)
5.0
kanhashriinc

See private message.

$42.5 USD 在2天内
(9条评论)
2.9