Forum Discussion
Hey 白夜有点黑
I don't think I'll be much help on this - but firstly is this a custom header? in the details below - you represent the header and value as 'Purpose: Prefetch' - but I know there is already a 'Prefetch' http header - but there isn't a standard one known as 'Purpose' - can you clarify what you mean by 'Purpose: Prefetch'?
You haven't supplied a list of the other headers in your requests - the values of some of the other headers 'could' be impacting other headers - especially custom ones - could you list out all the headers for both the fiddler and soapui requests - perhaps a screenshot?
nmrao responded to a similar issue several years ago where he manually added a custom User-Agent header in the request (without setting the "User-Agent header" option in the Preferences) - the link is as follows: link - perhaps this will help?
ta,
richie
Access http://www.bing.com as example, when I try to access http://www.bing.com, it will redirect to https://cn.bing.com
Here is the screenshots with Fiddler and SoapUI Pro:
GET http://www.bing.com/ HTTP/1.1
purpose: preview
x-purpose: preview
x-moz: preview
Host: www.bing.com
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
- richie6 years agoCommunity Hero
Hey 白夜有点黑
I'm sorry - I don't think I was clear. you have supplied some screenshots - but I meant multiple screenshots of everything that could provide some info on your request AND your response - both via Postman and ReadyAPI.
What I meant was to compare Postman publishing to site1 and redirecting to site2 whilst proxying the requests with fiddler - grab screenshots of what is detailed in fiddler - RAW, headers and cookies via fiddler and what was in Postman (just to be sure)
Do the exactly the same for ReadyAPI! - and then see what is different. From what you've stated, the requests are being treated differently - i.e. missing custom headers when submitting the request via ReadyAPI! - we know the app server is treating the requests from ReadyAPI! differently to the ones from Postman (quite often I've noticed this and "I think" this is cos a lot of stuff is enabled by default in Postman, but ReadyAPI! is far more configurable) we need to try and identify the difference to determine the cause of the missing headers.
Another thing - what do your custom headers do? as I said before - headers can interfer with the desired behaviour - so it might add some value to explain what your headers actually do (although I dont think much of this idea to be honest - you have so few headers I cant really see a problem there).
ta
richie
- TanyaYatskovska6 years agoSmartBear Alumni (Retired)
Hi 白夜有点黑,
In ReadyAPI, we have two options to handle redirects:
Follow Redirects If
true
, the request will follow the redirect and return the server message. Otherwise, a redirect message will be returned.Follow 302 Redirect with GET If
true
, Ready! API uses theGET
method for subsequent requests if the response has the302 Found
HTTP code.Please refer to the following articles to learn more: https://support.smartbear.com/readyapi/docs/projects/ui/request-properties/rest.html
Related Content
Recent Discussions
- 11 hours ago