From: zswu Date: 2007-04-25T16:25:16+09:00 Subject: Re: URL Splitting class G def send( url, user, pass, code = nil ) begin str = Url.find( url ).url + '?username=' + user + '&password=' + pass.to_s str += '&code=' + code.to_s if code rescue => e if e.is_kind_of RecordNotFoundError ... end end end end Is this? On 4/25/07, Mohamed Hussain wrote: > Hi Dude > Thank you for your reply > > Actually > i have one table called "urls" > > id url params > > 1 http://www.mob.com/add.asp username;password; > 2 http://www.zad.com/add.asp username;password;code; > 3 http://www.mob.com/add.asp username; > > > These are my table records > > I want to get these url and parameters dynamically depending upon id > > after i got the value > i will post the url by Net::HTTP.post_form() method > > i can get the record from table but i cannot post the url dynamically > i want to post the url in a single block. > > the username ,password and code are set dynamically > > i will call only one function like > g.send(1,user,pass) > g.send(2,user,pass,code) > g.send(3,user) > > these three function should call single method,on that method ,we should > post the url > > this is my problem > can anybody tell me the solution? > > > ok > Bye > By > P.S.Hussain > > > > > > > -- > Posted via http://www.ruby-forum.com/. > > -- /***********************************/ Lets go With the float.... /***********************************/