538 $ sendhttpraw << EOF |
538 $ sendhttpraw << EOF |
539 > httprequest POST api/$HTTPV2/ro/multirequest |
539 > httprequest POST api/$HTTPV2/ro/multirequest |
540 > accept: $MEDIATYPE |
540 > accept: $MEDIATYPE |
541 > content-type: $MEDIATYPE |
541 > content-type: $MEDIATYPE |
542 > user-agent: test |
542 > user-agent: test |
543 > frame 1 1 stream-begin command-request new cbor:{b'name': b'unbundle'} |
543 > frame 1 1 stream-begin command-request new cbor:{b'name': b'pushkey'} |
544 > EOF |
544 > EOF |
545 using raw connection to peer |
545 using raw connection to peer |
546 s> POST /api/exp-http-v2-0001/ro/multirequest HTTP/1.1\r\n |
546 s> POST /api/exp-http-v2-0001/ro/multirequest HTTP/1.1\r\n |
547 s> Accept-Encoding: identity\r\n |
547 s> Accept-Encoding: identity\r\n |
548 s> accept: application/mercurial-exp-framing-0003\r\n |
548 s> accept: application/mercurial-exp-framing-0003\r\n |
549 s> content-type: application/mercurial-exp-framing-0003\r\n |
549 s> content-type: application/mercurial-exp-framing-0003\r\n |
550 s> user-agent: test\r\n |
550 s> user-agent: test\r\n |
551 s> content-length: 23\r\n |
551 s> content-length: 22\r\n |
552 s> host: $LOCALIP:$HGPORT\r\n (glob) |
552 s> host: $LOCALIP:$HGPORT\r\n (glob) |
553 s> \r\n |
553 s> \r\n |
554 s> \x0f\x00\x00\x01\x00\x01\x01\x11\xa1DnameHunbundle |
554 s> \x0e\x00\x00\x01\x00\x01\x01\x11\xa1DnameGpushkey |
555 s> makefile('rb', None) |
555 s> makefile('rb', None) |
556 s> HTTP/1.1 403 Forbidden\r\n |
556 s> HTTP/1.1 403 Forbidden\r\n |
557 s> Server: testing stub value\r\n |
557 s> Server: testing stub value\r\n |
558 s> Date: $HTTP_DATE$\r\n |
558 s> Date: $HTTP_DATE$\r\n |
559 s> Content-Type: text/plain\r\n |
559 s> Content-Type: text/plain\r\n |
560 s> Content-Length: 53\r\n |
560 s> Content-Length: 52\r\n |
561 s> \r\n |
561 s> \r\n |
562 s> insufficient permissions to execute command: unbundle |
562 s> insufficient permissions to execute command: pushkey |
563 |
563 |
564 $ cat error.log |
564 $ cat error.log |