A
Ak 756
Hi
I am using Net::HTTP.post_form to post cgi request to a website and get
answers.
Below is my code and I found that it always take about 30s to return the
result. I think my Internt connection is not so slow as I paste the same
cgi request url and run in my firefox, it will get result in less then
10 second.
puts Time.now
post_result= Net::HTTP.post_form(URI.parse(url),params)
puts Time.now
So, how can I make the post_form returns quickly?
And, I also found many tags like <img src=xxx.gif> in the returned html
file. Did the post_form download all those gif files? If so, how can I
discard all the image file and only get the text result?
Thanks in advance.
ak
I am using Net::HTTP.post_form to post cgi request to a website and get
answers.
Below is my code and I found that it always take about 30s to return the
result. I think my Internt connection is not so slow as I paste the same
cgi request url and run in my firefox, it will get result in less then
10 second.
puts Time.now
post_result= Net::HTTP.post_form(URI.parse(url),params)
puts Time.now
So, how can I make the post_form returns quickly?
And, I also found many tags like <img src=xxx.gif> in the returned html
file. Did the post_form download all those gif files? If so, how can I
discard all the image file and only get the text result?
Thanks in advance.
ak