bad-path.es.tst 264 B

123456789101112131415
  1. /*
  2. Test a bad path 'sip:nm'
  3. */
  4. let s = new Socket
  5. s.connect('127.0.0.1:18080')
  6. s.write('OPTIONS sip:nm SIP/2.0\r
  7. Content-Length: 0\r
  8. Contact: \r
  9. Accept: application/*\r\n\r\n')
  10. let response = new ByteArray
  11. while (s.read(response, -1) != null) {}
  12. s.close()