Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72608

avoid following redirect headers automatically

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • http-request-plugin
    • None

      In my pipeline, I want to find out the location header returned by an endpoint. I have not found a way to do this with httpRequest. It is trivial in curl, but httpRequest automatically follows 302 redirects, so the info is gone in the returned response.

      In other http clients, this is usually an option. Do you want to follow redirects automatically or not. I think the same would be good here.

      Hope this explanation is clear. The difference in behavior between curl and httpRequest really confused me until I understood this issue.

            janario Janario Oliveira
            rlindner81 Richard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: