Send GET request with 443 userid password prompt authentication using Java HttpClient -


I want to get feedback from url by sending examples such as ur parameters (GET parameters). $ MerchantId / ConversionDetailReport.xml

When I hit the server, I am prompted by a user-id, password dialog box.

I can get the answer manually by entering the ID, password.

  Final HTTP Client httpClient = New HTTP Client ();   

How can I get the code given below HttpClient.getState () Set credentials (new AuthScope (tap, 443), new username password certificate (username, password)); HttpClient.getParams () SetParameter ("http.socket.timeout", integer.valof (10000)); HttpClient.getState () setAuthenticationPreemptive (true). Final GetMethod method = New GetMethod ("https://ebctest.cybersource.com/ebctest/DownloadReport/2014/07/23/$merchantId/ConversionDetailReport.xml"); Final input source = new input source (new bytereinputstream (method.getResponseBody ());

When I do the procedure. GetResponseBody I get empty I should get a fair response because I receive the request manually when sending it.

This basic Auth, you should be able to send us a username and password by calling this url: < / P>

https: // Username : Password @ ebctest.cybersource.com/aboutstate/d

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -