Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zulhilmizainuddin committed Jan 16, 2016
1 parent ae19bff commit b53cec7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ int responseCode = httpDelete.execute();
try {
Http http = new HttpPost("http://httpbin.org/post");

int responseCode = http.setHeader("Accept-Encoding", "gzip, deflate")
.setHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36")
.setCookie(new HttpCookie("csrftoken", "951157e1fecfce6d8f9f52587ee27f2a"))
.setConnectionTimeout(15000)
.setReadTimeout(15000)
.setFollowRedirects(true)
.setBody("username=user&password=passwd")
.execute();
int responseCode =
http.setHeader("Accept-Encoding", "gzip, deflate")
.setHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36")
.setCookie(new HttpCookie("csrftoken", "951157e1fecfce6d8f9f52587ee27f2a"))
.setConnectionTimeout(15000)
.setReadTimeout(15000)
.setFollowRedirects(true)
.setBody("username=user&password=passwd")
.execute();

Map<String, List<String>> responseHeaders;
List<HttpCookie> responseCookies;
Expand Down

0 comments on commit b53cec7

Please sign in to comment.