lib/scraper/crawler/apple_imei.rb
def request_imei(imei)
        req = ::Net::HTTP::Post.new(URL, "User-Agent" => USER_AGENT)
        req.set_form_data(sn: imei, num: number)
        @res = ::Net::HTTP.start(URL.hostname, URL.port, use_ssl: true) do |http|
          http.request(req)
        end
      end
#
# Make request with the given IMEI number
#
# @param [String] imei
#
# @return [String] returns response page body
#
Make request with the given IMEI number
Make request with the given IMEI number
def request_imei(imei)
        req = ::Net::HTTP::Post.new(URL, "User-Agent" => USER_AGENT)
        req.set_form_data(sn: imei, num: number)
        @res = ::Net::HTTP.start(URL.hostname, URL.port, use_ssl: true) do |http|
          http.request(req)
        end
      end
def request_imei ( imei ) req = :: Net :: HTTP :: Post . new ( URL , "User-Agent" => USER_AGENT ) req . set_form_data ( sn : imei , num : number ) @res = :: Net :: HTTP . start ( URL . hostname , URL . port , use_ssl : true ) do | http | http . request ( req ) end end
Make request with the given IMEI number
Make request with the given IMEI number
returns response page body
returns response page body
String
imei
None