Send credentials on post.
[rsc] --rw-rw-r-- M 320859 glenda sys 25846 Oct 27 10:37 sys/src/cmd/hget.c
/n/sourcesdump/2005/1027/plan9/sys/src/cmd/hget.c:389,394 -
/n/sourcesdump/2005/1028/plan9/sys/src/cmd/hget.c:389,396
"Content-length: %d\r\n"
"User-agent: Plan9/hget\r\n",
u->page, u->host, strlen(u->postbody));
+ if(u->cred)
+ dfprint(fd, "Authorization: Basic %s\r\n", u->cred);
}
if(r->start != 0){
dfprint(fd, "Range: bytes=%d-\n", r->start);
|