[cs631apue] Fwd: test-sws.sh

Shenghan Gao sgao9 at stevens.edu
Fri Dec 4 21:27:45 EST 2015


---------- Forwarded message ----------
From: Shenghan Gao <sgao9 at stevens.edu>
Date: Fri, Dec 4, 2015 at 9:27 PM
Subject: Re: [cs631apue] test-sws.sh
To: Jan Schaumann <jschauma at stevens.edu>


When run the script, it will raise an error like below.

GET '/file%20space%20%3C%20path%20%3E%20name' HTTP/1.0
test-sws.sh: 73: printf: %20%: invalid directive

And the script will stop on it for several seconds.

Shenghan

On Fri, Dec 4, 2015 at 8:56 PM, Jan Schaumann <jschauma at stevens.edu> wrote:

> Julian Sexton <jsexton at stevens.edu> wrote:
> > If anyone else is having trouble getting the test-sws.sh script to
> > iterate over the URIs, we found that removing the quotes around
> > ?${URIS}? makes it work. Otherwise it seems to be calling ?GET
> > every-URI-here HTTP/1.0?.
>
> Good call.  I had added the quotes to account for spaces in requests,
> but shell-quoting being what it is, that lead to the problem you
> described.  I've updated the script to fix that.
>
> Goes to show what you get when you make a quick change without testing
> it...
>
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20151204/4db8315c/attachment-0001.html>


More information about the cs631apue mailing list