Fixed string messages
This commit is contained in:
parent
037437207b
commit
0894509a47
4
laconia
4
laconia
|
@ -19,11 +19,11 @@ usage() {
|
|||
}
|
||||
|
||||
request(){
|
||||
page=$(printf "$host /$path $post_len\r\n$post" | nc $host $port)
|
||||
page=$(printf "$host /$path $post_len\r\n$post\r\n" | nc $host $port)
|
||||
status=$(echo $page | awk 'NR == 1 {print $1}')
|
||||
meta=$(echo $page | awk 'NR == 1 {$1=="";print}')
|
||||
if [[ $status == 2 ]]; then
|
||||
echo -e "$page\n" | awk 'NR > 1 {print}'
|
||||
echo -e "$page" | awk 'NR > 1 {print}'
|
||||
elif [[ $status == 3 ]]; then
|
||||
#path=$meta
|
||||
printf "%s %s %s\r\n%s\r\n" "$host" "/$path/" "$post_len" "$post" | nc $host $port | awk 'NR > 1 {print}'
|
||||
|
|
Loading…
Reference in New Issue