Assuming you have opened the csv file and are going through it one line at a time, you could use the getCurrentUrl method. So, something like this (in Java):
WebDriver driver = new FirefoxDriver();
driver.get(url1); //Open the URL from column 1
String endUrl = driver.getCurrentUrl();
Then just compare endUrl with whatever is stored in the second column. If they are the same, the test has passed. If they're different, it hasn't.
Hope that helps.