lib/wmap/utils/url_magic.rb
# Create / construct the absolute URL from a known URL and relative file path. For example, 'http://images.search.yahoo.com/images' + '/search/images?p=raiders' => 'http://images.search.yahoo.com/search/images?p=raiders'
Create / construct the absolute URL from a known URL and relative file path.
Create / construct the absolute URL from a known URL and relative file path .
def create_absolute_url_from_base(potential_base, relative_url)
		naked_base = url_2_site(potential_base).strip.chop
		puts "Found absolute URL: #{naked_base+relative_url}" if @verbose
		return naked_base + relative_url
  rescue => ee
		puts "Exception on method #{__method__}: #{ee}" if @verbose
    return nil
  end
def create_absolute_url_from_base ( potential_base , relative_url ) naked_base = url_2_site ( potential_base ) . strip . chop puts "Found absolute URL: #{naked_base+relative_url}" if @verbose return naked_base + relative_url rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return nil end
Create / construct the absolute URL from a known URL and relative file path.
Create / construct the absolute URL from a known URL and relative file path .
#puts "Determine the absolute URL from potential base #{potential_base} and relative URL #{relative_url}" if @verbose
potential_base
<not_specific>
relative_url
<not_specific>