--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you so much Johan.
I used the Chrome developer tool and found the following in the Response Headers
I am trying to construct post request, Can you give me some code example?
Thanks
Ellen
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
RequestSpecBuilder builder = new RequestSpecBuilder();
RequestSpecification spec = builder.setAuth(authScheme)
.addParam("password","<password>")
.addParam("user","<user name>")
.build();
Response res1 = RestAssured.given().spec(spec).when().post(API_uri);
String jsString = res1.thenReturn().asString();
returns
<HTML><HEAD><TITLE></TITLE></HEAD><BODY onLoad="document.AUTOSUBMIT.submit();">This page is used to hold your data while you are being authorized for your request.<BR><BR>You will be forwarded to continue the authorization process. If this does not happen automatically, please click the Continue button below.<FORM NAME="AUTOSUBMIT" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded" ACTION=https://xxxx.xx.xxx.org:1443/login.fcc?TYPE=33554433&REALMOID=06-000d1a64-ea69-1947-a311-9b850a33a0be&GUID=&SMAUTHREASON=0&METHOD=POST&SMAGENTNAME=-SM-OL9V%2fqlt7%2f7L%2bn9klS4%2bVH5DvC2Gidql5iLqO6CXQTQPU4e4QgjI67sYeeeFAewI&TARGET=-SM-http%3a%2f%2xxxx%2exx%2efrb%2exxx%3a1080%xxxxxxx%2fxxxx%2fxxxx><INPUT TYPE="HIDDEN" NAME="SMPostPreserve" VALUE="2xAzhdGH6rDEWmK0cYtjiILWj7oPMaHev1xXP8QkZiKNBNSGZ0eCscoACs25RPl2TV2v/Gs2ctJ2Ugqd65x+kUlCrTZR6/ou"><INPUT TYPE="SUBMIT" VALUE="Continue"></FORM></BODY></HTML>