S
Sudhi Kulkarni
Hi,
I am trying do a Net::HTTP post, the post returns with a 201 Created but
still the thread executing the script is stuck until Read Timeout
occurs. Need help to understand how to comeout of the Post when a
response is obtained. The code snippet I am using is as below
fd= File.open("test.xml","rb")
h = Net::HTTP.new("<ip-address>", 8080)
h.post('/test/test1',fd.read)
Thanks for the help in advance
Regards,
Sudhi
I am trying do a Net::HTTP post, the post returns with a 201 Created but
still the thread executing the script is stuck until Read Timeout
occurs. Need help to understand how to comeout of the Post when a
response is obtained. The code snippet I am using is as below
fd= File.open("test.xml","rb")
h = Net::HTTP.new("<ip-address>", 8080)
h.post('/test/test1',fd.read)
Thanks for the help in advance
Regards,
Sudhi