on reçoit "url" en argument de la méthode X
cette dernière fait :
$urid = URI.parse(URI.encode(url)).query
$uri = URI.parse(url)
## AVEC :
puts "$uri.host :" + $uri.host
puts "$uri.path :" + $uri.path
puts "$urid :" + $urid
## rendu:
$uri.host :rr.cc.fr
$uri.path :/what.php
$urid :id=228
zap = $uri.path + "?" + $urid
puts "---on attaque :" + $uri.host + zap
## rendu:
--on attaque :rr.cc.fr/what.php?id=228
puts "$uri=" + $uri.to_s
## rendu:
$uri=https://rr.cc.fr/what.php?id=228
pourquoi le
resp = Net::HTTP.get_response($uri.host,zap)
$pge = resp.body()
est très long à répondre ?
cela tient-il au site ou à autre chose ?
Partager