Update docker/auth-bench/run-ab.sh
This commit is contained in:
		
							parent
							
								
									0ec3779575
								
							
						
					
					
						commit
						834ea81f2d
					
				|  | @ -9,12 +9,18 @@ function fetch_auth_cookie { | ||||||
|       local login_url="https://bishopairport.org/login/concrete/authenticate" |       local login_url="https://bishopairport.org/login/concrete/authenticate" | ||||||
|       local login_data="uName=$USERNAME&uPassword=$PASSWORD" |       local login_data="uName=$USERNAME&uPassword=$PASSWORD" | ||||||
|        |        | ||||||
|       # Fetch and store the cookie for Concrete5 |       # Fetch and store the cookie for Concrete5, with verbose output for debugging | ||||||
|       curl -c "$cookie_file" -d "$login_data" -X POST "$login_url" |       curl -c "$cookie_file" -d "$login_data" -X POST "$login_url" -v > /tmp/curl_response_concrete5.txt 2>&1 | ||||||
|  |        | ||||||
|  |       # Check if the cookie was successfully fetched | ||||||
|  |       if [ ! -s "$cookie_file" ]; then | ||||||
|  |         echo "Failed to fetch cookie for Concrete5. Check /tmp/curl_response_concrete5.txt for details." | ||||||
|  |         exit 1 | ||||||
|  |       fi | ||||||
|       ;; |       ;; | ||||||
|        |        | ||||||
|     "WordPress") |     "WordPress") | ||||||
|       # Placeholder for WordPress authentication |       # Placeholder for WordPress authentication, to be developed | ||||||
|       echo "WordPress authentication: To be developed" |       echo "WordPress authentication: To be developed" | ||||||
|       ;; |       ;; | ||||||
|        |        | ||||||
|  | @ -25,6 +31,7 @@ function fetch_auth_cookie { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| function prepare_log_file { | function prepare_log_file { | ||||||
|   local log_file="/logs/authenticated.csv" |   local log_file="/logs/authenticated.csv" | ||||||
|   > "$log_file" |   > "$log_file" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 colin
						colin