Update structure for partials and examples
This commit is contained in:
parent
b1b3d6a960
commit
531ddf0721
89 changed files with 79 additions and 79 deletions
18
modules/ROOT/examples/Features-TLS-NSS-Use.adoc
Normal file
18
modules/ROOT/examples/Features-TLS-NSS-Use.adoc
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
char buf[4096];
|
||||
snprintf(buf, sizeof(buf), "GET / HTTP/1.0\r\nHost: %s\r\n\r\n", host);
|
||||
PRInt32 ret = PR_Write(nspr, buf, strlen(buf));
|
||||
if (ret < 0) {
|
||||
const PRErrorCode err = PR_GetError();
|
||||
fprintf(stderr, "error: PR_Write error %d: %s\n",
|
||||
err, PR_ErrorToName(err));
|
||||
exit(1);
|
||||
}
|
||||
ret = PR_Read(nspr, buf, sizeof(buf));
|
||||
if (ret < 0) {
|
||||
const PRErrorCode err = PR_GetError();
|
||||
fprintf(stderr, "error: PR_Read error %d: %s\n",
|
||||
err, PR_ErrorToName(err));
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue