I am trying to send an HTTP request using HTTParty with some parameters,
Eg:
GET URL: http://example1.com?a=123&b=456
response_to_get = HTTParty.get('http://example1.com?a=123&b=456')
The redirect_url for this particular request is http://example2.com
When I tried the URL http://example1.com?a=123&b=456
in browser, it redirects to the expected URL with parameter value appended to it like http://example2.com?c=123trt58
, but when I did it using HTTParty, I'm getting an HTML reponse only.
My requirement is to get the URL(http://example2.com?c=123trt58) out from the response.
Thanks in Advance.