Original: http://blog.csdn.net/z69183787/article/details/25372971
The scenario is that third-party page access needs to be identified, so the attribute and content to be added to the HTTP header is sent to a third party Web page.
I tried using the Response.AddHeader ("Authorization", "xxxxxxxxx") method, but the request was sent with no Authorization attribute, and Daniel was invited to feel free.
Your problem is actually server access to the Third-party authentication system, this access process and the client does not matter
It doesn't matter with response,request.
is to simulate HTTP requests on the server side, adding custom headers in this request
It's easy to use httpclient.
[Java]View plain copy httpclient httpclient=new httpclient (New Httpclientparams (), New Simplehttpconnectionmanager (true); list
After the third party system has verified your header correctly, there will be some signs in the return session.
Put these logos back to your client so that your client can access this third party.