This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private String getParamsFromPost(HttpServletRequest request) throws IOException { | |
| BufferedReader reader = request.getReader(); | |
| StringBuilder sb = new StringBuilder(); | |
| String line = reader.readLine(); | |
| while (line != null) { | |
| sb.append(line + "\n"); | |
| line = reader.readLine(); | |
| } | |
| reader.close(); | |
| String params = sb.toString(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| baseurl=http://mygitlaburl | |
| usermail=adminuser@mymailserver | |
| userpass=adminpassword | |
| repo_access=2 #0=denied 1=read 2=read&write | |
| project_access=2 #0=deined 1=read 2=report 3=admin | |
| # login | |
| curl -s -I -c cookies.txt -d "utf8=✓&user[email]=$usermail&user[password]=$userpass&commit=Sign+in" $baseurl/users/sign_in |