But i am getting error page from the server;
It says "parameter format error"
Is there any library routine for converting array of cookies to format
that post is expecting
--
EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
When you do something, you should burn yourself completely, like a good
bonfire, leaving no trace of yourself. --Shunryu Suzuki
Hi Thanx for your reply Howard.
Actually i thought my mail did not reach the mailing list and
so mailed the same query to the group once more
Everybody please forgive me for that.
Hello Howard it goes like this
#file name : router.rb
#!/usr/bin/ruby -W0
require 'helpme' # have some miscellany functions
cgi=CGI.new('html3')
ckyArr=[ ]
for name,cky in cgi.cookies
ckyArr<<cky
ckyArr[-1].name=name
end
tmp=formatCookie(ckyArr)
# assume some formatting ..,
# hopefully i have done it right coz i have seen few raw pkts and
# coded this
prms=""
cgi.params.each{|key,val|
if(key!='path')
prms<<key<<"="
val.each{|obj|
prms<<obj
# if this is an array i dont know what to do here
# but i can check it later
}
prms<<"&"
end
}
query="?"<<prms
h=Net::HTTP.start(site)
resp, data = h.post(targ,query,hdr)
# here is my problem What is this Hdr format in the above func
# The data i got from "isical" is given to the client