HTTP_server.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Options/HTTP Server - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. <style>
  9. .options_row_label {font-weight:bold; vertical-align:text-top; text-align:right; width:150px;}
  10. .options_table {border: 1px solid #AAAAAA; border-collapse: collapse; color: black; margin: 1em 0; background-color: #F9F9F9;}
  11. .options_table td {border: 1px solid #AAAAAA; padding: 0.2em;}
  12. .options_textbox {padding: 2px; border: 1px solid black;}
  13. .options_textbox_num {padding: 2px; border: 1px solid black; text-align:right;}
  14. .options_textarea {padding: 2px; border: 1px solid black;}
  15. .options_select {padding: 2px; border: 1px solid black;}
  16. .options_button {padding: 2px; border: 1px solid black; background: white; height: 22px; margin-left: 1px; vertical-align: top;}
  17. .options_checkbox {padding: 2px; border: 1px solid black;}
  18. .options_readonly {background-color:#F9F9F9;}
  19. </style>
  20. <style>
  21. .optionsButton
  22. {
  23. width: 100px;
  24. height: 40px;
  25. font-family: 'Segoe UI';
  26. font-size: 12px;
  27. margin-left: -5px;
  28. cursor: pointer;
  29. background-color: lightgray;
  30. text-align: center;
  31. }
  32. .optionsLink
  33. {
  34. color: black !important;
  35. text-decoration: none;
  36. }
  37. .optionsButton.active
  38. {
  39. width: 100px;
  40. height: 40px;
  41. font-family: 'Segoe UI';
  42. font-size: 12px;
  43. margin-left: -5px;
  44. cursor: pointer;
  45. background-color: dimgray;
  46. color: white !important;
  47. border: solid 1px dimgray;
  48. }
  49. .optionsButton.active a
  50. {
  51. color: white !important;
  52. }
  53. .tabs
  54. {
  55. width: 100%;
  56. margin-top: 10px;
  57. }
  58. .tab-links ul
  59. {
  60. margin-left: -40px;
  61. }
  62. .tab-links li
  63. {
  64. margin: 0px 0px 0px 0px;
  65. float: left;
  66. list-style: none;
  67. }
  68. .tab-links a
  69. {
  70. padding: 9px 15px 9px 15px;
  71. border-radius: 3px 3px 0px 0px;
  72. background: #f0f0f0;
  73. font-family: 'Segoe UI';
  74. font-size: 13px;
  75. color: black !important;
  76. text-decoration: none;
  77. border-radius: 3px;
  78. border-top: solid 1px gray;
  79. border-left: solid 1px gray;
  80. border-right: solid 1px gray;
  81. }
  82. .tab-links a:hover
  83. {
  84. background: #B0B0B0;
  85. text-decoration: none;
  86. }
  87. li.active a, li.active a:hover
  88. {
  89. background: #fff;
  90. color: #4c4c4c;
  91. font-weight: bold;
  92. }
  93. .tab-content
  94. {
  95. padding: 15px;
  96. border-radius: 3px;
  97. background: #fff;
  98. border-top: solid 1px gray;
  99. margin-top: 5px;
  100. min-height: 300px;
  101. }
  102. </style>
  103. <style>
  104. .options_row_label {font-weight:bold; vertical-align:text-top; text-align:right; width:150px;}
  105. .options_table {border: 1px solid #AAAAAA; border-collapse: collapse; color: black; margin: 1em 0; background-color: #F9F9F9;}
  106. .options_table td {border: 1px solid #AAAAAA; padding: 0.2em;}
  107. .options_textbox {padding: 2px; border: 1px solid black;}
  108. .options_textbox_num {padding: 2px; border: 1px solid black; text-align:right;}
  109. .options_textarea {padding: 2px; border: 1px solid black;}
  110. .options_select {padding: 2px; border: 1px solid black;}
  111. .options_button {padding: 2px; border: 1px solid black; background: white; height: 22px; margin-left: 1px; vertical-align: top;}
  112. .options_checkbox {padding: 2px; border: 1px solid black;}
  113. .options_readonly {background-color:#F9F9F9;}
  114. </style>
  115. <style>
  116. .optionsButton
  117. {
  118. width: 100px;
  119. height: 40px;
  120. font-family: 'Segoe UI';
  121. font-size: 12px;
  122. margin-left: -5px;
  123. cursor: pointer;
  124. background-color: lightgray;
  125. text-align: center;
  126. }
  127. .optionsLink
  128. {
  129. color: black !important;
  130. text-decoration: none;
  131. }
  132. .optionsButton.active
  133. {
  134. width: 100px;
  135. height: 40px;
  136. font-family: 'Segoe UI';
  137. font-size: 12px;
  138. margin-left: -5px;
  139. cursor: pointer;
  140. background-color: dimgray;
  141. color: white !important;
  142. border: solid 1px dimgray;
  143. }
  144. .optionsButton.active a
  145. {
  146. color: white !important;
  147. }
  148. .tabs
  149. {
  150. width: 100%;
  151. margin-top: 10px;
  152. }
  153. .tab-links ul
  154. {
  155. margin-left: -40px;
  156. }
  157. .tab-links li
  158. {
  159. margin: 0px 0px 0px 0px;
  160. float: left;
  161. list-style: none;
  162. }
  163. .tab-links a
  164. {
  165. padding: 9px 15px 9px 15px;
  166. border-radius: 3px 3px 0px 0px;
  167. background: #f0f0f0;
  168. font-family: 'Segoe UI';
  169. font-size: 13px;
  170. color: black !important;
  171. text-decoration: none;
  172. border-radius: 3px;
  173. border-top: solid 1px gray;
  174. border-left: solid 1px gray;
  175. border-right: solid 1px gray;
  176. }
  177. .tab-links a:hover
  178. {
  179. background: #B0B0B0;
  180. text-decoration: none;
  181. }
  182. li.active a, li.active a:hover
  183. {
  184. background: #fff;
  185. color: #4c4c4c;
  186. font-weight: bold;
  187. }
  188. .tab-content
  189. {
  190. padding: 15px;
  191. border-radius: 3px;
  192. background: #fff;
  193. border-top: solid 1px gray;
  194. margin-top: 5px;
  195. min-height: 300px;
  196. }
  197. </style>
  198. </head>
  199. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  200. <div id="mw-page-base" class="noprint"></div>
  201. <div id="mw-head-base" class="noprint"></div>
  202. <div id="content" class="mw-body">
  203. <h1 id="firstHeading" class="firstHeading"><span>Options/HTTP Server</span></h1>
  204. <div id="bodyContent" class="mw-body-content">
  205. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  206. <div id="contentSub"></div>
  207. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  208. <div>
  209. <table>
  210. <tr>
  211. <td class='optionsButton'>
  212. <a class='optionsLink' href='/wiki/Options/Window'>Apps (basic)</a>
  213. </td>
  214. <td class='optionsButton'>
  215. <a class='optionsLink' href='/wiki/Options/Security'>Apps (advanced)</a>
  216. </td>
  217. <td class='optionsButton'>
  218. <a class='optionsLink' href='/wiki/Options/Import'>Wiki</a>
  219. </td>
  220. <td class='optionsButton'>
  221. <a class='optionsLink' href='/wiki/Options/HTML'>HTML</a>
  222. </td>
  223. <td class='optionsButton active'>
  224. <a class='optionsLink' href='/wiki/Options/Content_apps'>External apps</a>
  225. </td>
  226. <td class='optionsButton'>
  227. <a class='optionsLink' href='/wiki/Options/Search_suggest'>Modules</a>
  228. </td>
  229. <td class='optionsButton'>
  230. <a class='optionsLink' href='/wiki/Options/Math'>Extensions</a>
  231. </td>
  232. <td class='optionsButton'>
  233. <a class='optionsLink' href='/wiki/Options/Dev'>Misc</a>
  234. </td>
  235. </tr>
  236. </table>
  237. </div>
  238. <div class="tabs">
  239. <div>
  240. <ul class='tab-links' style='margin-left:0px;'>
  241. <li class=''>
  242. <a href='/wiki/Options/Content_apps'>Content apps</a>
  243. </li>
  244. <li class=''>
  245. <a href='/wiki/Options/Firefox_addon'>Firefox addon</a>
  246. </li>
  247. <li class='active'>
  248. <a href='/wiki/Options/HTTP_server'>HTTP server</a>
  249. </li>
  250. </ul>
  251. </div><br>
  252. <div class='tab-content'>
  253. <div id="toc" class="toc">
  254. <div id="toctitle">
  255. <h2>
  256. Contents
  257. </h2>
  258. </div>
  259. <ul>
  260. <li class="toclevel-1 tocsection-1">
  261. <a href="#HTTP_Server"><span class="tocnumber">1</span> <span class="toctext">HTTP Server</span></a>
  262. </li>
  263. <li class="toclevel-1 tocsection-2">
  264. <a href="#Notes"><span class="tocnumber">2</span> <span class="toctext">Notes</span></a>
  265. </li>
  266. </ul>
  267. </div>
  268. <div style='float:right; margin-right:10px; margin-top:5px;'>
  269. <p>
  270. <a href="xowa-cmd:app.user.prefs.save();" accesskey='s'><img src='file:///C:/xowa/bin/any/xowa/file/app.window/save.png' width="16" height="16">Save</a>
  271. </p>
  272. </div><br>
  273. <h2>
  274. <span class="mw-headline" id="HTTP_Server">HTTP Server</span>
  275. </h2>
  276. <table class='options_table'>
  277. <tr>
  278. <td class='options_row_label'>
  279. Port: <sup id="cite_ref-port_0-0" class="reference"><a href="#cite_note-port-0">[1]</a></sup>
  280. </td>
  281. <td>
  282. <input xowa_prop="app.http_server.port" class="options_textbox" id='xowa_prop_0' value='8080'>
  283. </td>
  284. </tr>
  285. <tr>
  286. <td class='options_row_label'>
  287. File retrieve mode: <sup id="cite_ref-file_retrieve_mode_1-0" class="reference"><a href="#cite_note-file_retrieve_mode-1">[2]</a></sup>
  288. </td>
  289. <td>
  290. <select xowa_prop="app.http_server.retrieve_mode" xowa_prop_list="app.http_server.retrieve_mode_list" class="options_textbox" size='3' id='xowa_prop_1'>
  291. <option value='wait' selected='selected'>
  292. wait
  293. </option>
  294. <option value='skip'>
  295. skip
  296. </option>
  297. <option value='async_server'>
  298. async server
  299. </option>
  300. </select>
  301. </td>
  302. </tr>
  303. </table>
  304. <h2>
  305. <span class="mw-headline" id="Notes">Notes</span>
  306. </h2>
  307. <p>
  308. See also <a href="http://xowa.org/home/wiki/App/Xtn/Browser/HTTP_Server.html" id="xolnki_2" title="App/Xtn/Browser/HTTP Server">App/Xtn/Browser/HTTP_Server</a>
  309. </p>
  310. <ol class="references">
  311. <li id="cite_note-port-0">
  312. <span class="mw-cite-backlink"><a href="#cite_ref-port_0-0">^</a></span> <span class="reference-text">Specify port for HTTP server (default is <code>8080</code>)</span>
  313. </li>
  314. <li id="cite_note-file_retrieve_mode-1">
  315. <span class="mw-cite-backlink"><a href="#cite_ref-file_retrieve_mode_1-0">^</a></span> <span class="reference-text">Specify mode for retrieving files (default is <code>wait</code>)</span>
  316. <ul>
  317. <li>
  318. <span class="reference-text"><b>wait</b> : Wait for all files to be retrieved before showing page (slow)</span>
  319. </li>
  320. <li>
  321. <span class="reference-text"><b>skip</b> : Never retrieve files; only files already retrieved will be shown (fast)</span>
  322. </li>
  323. <li>
  324. <span class="reference-text"><b>async server</b> : Show page immediately, but retrieve files in background. Client will have to manually refresh to show retrieved files (fast)</span>
  325. </li>
  326. </ul>
  327. </li>
  328. </ol>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. <div id="mw-head" class="noprint">
  335. <div id="left-navigation">
  336. <div id="p-namespaces" class="vectorTabs">
  337. <h3>Namespaces</h3>
  338. <ul>
  339. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  340. </ul>
  341. </div>
  342. </div>
  343. </div>
  344. <div id='mw-panel' class='noprint'>
  345. <div id='p-logo'>
  346. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  347. </div>
  348. <div class="portal" id='xowa-portal-home'>
  349. <h3>XOWA</h3>
  350. <div class="body">
  351. <ul>
  352. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  353. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  354. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  355. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  356. </ul>
  357. </div>
  358. </div>
  359. <div class="portal" id='xowa-portal-started'>
  360. <h3>Getting started</h3>
  361. <div class="body">
  362. <ul>
  363. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  364. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  365. <li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
  366. <li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
  367. <li><a href="http://xowa.org/home/wiki/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
  368. </ul>
  369. </div>
  370. </div>
  371. <div class="portal" id='xowa-portal-android'>
  372. <h3>Android</h3>
  373. <div class="body">
  374. <ul>
  375. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  376. </ul>
  377. </div>
  378. </div>
  379. <div class="portal" id='xowa-portal-help'>
  380. <h3>Help</h3>
  381. <div class="body">
  382. <ul>
  383. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  384. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  385. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  386. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  387. </ul>
  388. </div>
  389. </div>
  390. <div class="portal" id='xowa-portal-blog'>
  391. <h3>Blog</h3>
  392. <div class="body">
  393. <ul>
  394. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  395. </ul>
  396. </div>
  397. </div>
  398. <div class="portal" id='xowa-portal-links'>
  399. <h3>Links</h3>
  400. <div class="body">
  401. <ul>
  402. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  403. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  404. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  405. </ul>
  406. </div>
  407. </div>
  408. <div class="portal" id='xowa-portal-donate'>
  409. <h3>Donate</h3>
  410. <div class="body">
  411. <ul>
  412. <li><a href="https://archive.org/donate/index.php" title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->
  413. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  414. <!-- <li><a href="" title="Support XOWA! (but only after you've supported archive.org and Wikipedia)">XOWA</a></li> -->
  415. </ul>
  416. </div>
  417. </div>
  418. </div>
  419. </body>
  420. </html>