Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

485 lignes
25 KiB

il y a 15 ans
il y a 14 ans
il y a 14 ans
il y a 14 ans
il y a 14 ans
il y a 14 ans
il y a 14 ans
  1. ibrowse is a HTTP client. The following are a list of features.
  2. - RFC2616 compliant (AFAIK)
  3. - supports GET, POST, OPTIONS, HEAD, PUT, DELETE, TRACE,
  4. MKCOL, PROPFIND, PROPPATCH, LOCK, UNLOCK, MOVE and COPY
  5. - Understands HTTP/0.9, HTTP/1.0 and HTTP/1.1
  6. - Understands chunked encoding
  7. - Can generate requests using Chunked Transfer-Encoding
  8. - Pools of connections to each webserver
  9. - Pipelining support
  10. - Download to file
  11. - Asynchronous requests. Responses are streamed to a process
  12. - Basic authentication
  13. - Supports proxy authentication
  14. - Can talk to Secure webservers using SSL
  15. - any other features in the code not listed here :)
  16. ibrowse is available under two different licenses. LGPL or the BSD license.
  17. Comments to : Chandrashekhar.Mullaparthi@gmail.com
  18. Version : 2.1.0
  19. Latest version : git://github.com/cmullaparthi/ibrowse.git
  20. CONTRIBUTORS
  21. ============
  22. The following people have helped maked ibrowse better by reporting bugs,
  23. supplying patches and also asking for new features. Please write to me if you
  24. have contributed and I've missed you out.
  25. In alphabetical order:
  26. Adam Kocoloski
  27. Andrew Tunnell-Jones
  28. Anthony Molinaro
  29. Benoit Chesneau
  30. Chris Newcombe
  31. Dan Kelley
  32. Derek Upham
  33. Eric Merritt
  34. Erik Reitsma
  35. Filipe David Manana
  36. Geoff Cant
  37. Jeroen Koops
  38. João Lopes
  39. Karol Skocik
  40. Kostis Sagonas
  41. Matthew Reilly
  42. Oscar Hellström
  43. Paul J. Davis
  44. Peter Kristensen
  45. Ram Krishnan
  46. Richard Cameron
  47. Sean Hinde
  48. Seth Falcon
  49. Steve Vinoski
  50. Thomas Lindgren
  51. Younès Hafri
  52. tholschuh (https://github.com/tholschuh/)
  53. CONTRIBUTIONS & CHANGE HISTORY
  54. ==============================
  55. 25-10-2010 - v2.1.0
  56. * Fixed build on OpenSolaris. Bug report and patch from
  57. tholschuh.
  58. http://github.com/cmullaparthi/ibrowse/issues/issue/10
  59. * Fixed behaviour of inactivity_timeout option. Reported by
  60. Jo�o Lopes.
  61. http://github.com/cmullaparthi/ibrowse/issues/issue/11
  62. * Prevent atom table pollution when bogus URLs are input to
  63. ibrowse. Bug report by João Lopes.
  64. http://github.com/cmullaparthi/ibrowse/issues/issue/13
  65. * Automatically do Chunked-Transfer encoding of request body
  66. when the body is generated by a fun. Patch provided by
  67. Filipe David Manana.
  68. http://github.com/cmullaparthi/ibrowse/issues/issue/14
  69. * Depending on input options, ibrowse sometimes included multiple
  70. Content-Length headers. Bug reported by Paul J. Davis
  71. http://github.com/cmullaparthi/ibrowse/issues/issue/15
  72. * Deal with webservers which do not provide a Reason-Phrase on the
  73. response Status-Line. Patch provided by Jeroen Koops.
  74. http://github.com/cmullaparthi/ibrowse/issues/issue/16
  75. * Fixed http://github.com/cmullaparthi/ibrowse/issues/issue/17
  76. This was reported by Filipe David Manana.
  77. * Fixed http://github.com/cmullaparthi/ibrowse/issues/issue/19
  78. This was reported by Dan Kelley and Filipe David Manana.
  79. * Added ibrowse:stream_close/1 to close the connection
  80. associated with a certain response stream. Patch provided by
  81. João Lopes.
  82. * Prevent port number being included in the Host header when port
  83. 443 is intended. Bug reported by Andrew Tunnell-Jones
  84. 24-09-2010 - v2.0.1
  85. * Removed a spurious io:format statement
  86. 22-09-2010 - v2.0.0.
  87. * Added option preserve_chunked_encoding. This allows the
  88. caller to get the raw HTTP response when the
  89. Transfer-Encoding is Chunked. This feature was requested
  90. by Benoit Chesneau who wanted to write a HTTP proxy using
  91. ibrowse.
  92. * Fixed bug with the {stream_to, {Pid, once}} option. Bug
  93. report and lot of help from Filipe David Manana. Thank
  94. you Filipe.
  95. * The {error, conn_failed} and {error, send_failed} return
  96. values are now of the form {error, {conn_failed, Err}}
  97. and {error, {send_failed, Err}}. This is so that the
  98. specific socket error can be returned to the caller. I
  99. think it looks a bit ugly, but that is the best
  100. compromise I could come up with.
  101. * Added application configuration parameters
  102. default_max_sessions and default_max_pipeline_size. These
  103. were previously hard coded to 10.
  104. * Versioning of ibrowse now follows the Semantic Versioning
  105. principles. See http://semver.org. Thanks to Anthony
  106. Molinaro for nudging me in this direction.
  107. * The connect_timeout option now only applies to the
  108. connection setup phase. In previous versions, the time
  109. taken to setup the connection was deducted from the
  110. specified timeout value for the request.
  111. 17-07-2010 - * Merged change made by Filipe David Manana to use the base64
  112. module for encoding/decoding.
  113. 11-06-2010 - * Removed use of deprecated concat_binary. Patch supplied by
  114. Steve Vinoski
  115. 10-06-2010 - * Fixed bug in https requests not going via the proxy
  116. 12-05-2010 - * Added support for the CONNECT method to tunnel HTTPS through
  117. a proxy. When a https URL is requested through a proxy,
  118. ibrowse will automatically use the CONNECT method to first
  119. setup a tunnel through the proxy. Once this succeeds, the
  120. actual request is dispatched. Successfully tested with the
  121. new SSL implementation in R13B-03
  122. * Added SSL support for direct connections.
  123. See ibrowse:spawn_worker_process/1 and
  124. ibrowse:spawn_link_worker_process/1
  125. * Added option to return raw status line and raw unparsed headers
  126. 23-04-2010 - * Fixes to URL parsing by Karol Skocik
  127. 08-11-2009 - * Added option headers_as_is
  128. 04-10-2009 - * Patch from Kostis Sagonas to cleanup some code and suppress
  129. dialyzer warnings
  130. 24-09-2009 - * When a filename was supplied with the 'save_response_to_file'
  131. option, the option was being ignored. Bug report from
  132. Adam Kocoloski
  133. 05-09-2009 - * Introduced option to allow caller to set socket options.
  134. 29-07-2009 - * The ETS table created for load balancing of requests was not
  135. being deleted which led to the node not being able to create
  136. any more ETS tables if queries were made to many number of
  137. webservers. ibrowse now deletes the ETS table it creates once the
  138. last connection to a webserver is dropped.
  139. Reported by Seth Falcon.
  140. * Spurious data being returned at end of body in certain cases of
  141. chunked encoded responses from the server.
  142. Reported by Chris Newcombe.
  143. 03-07-2009 - Added option {stream_to, {Pid, once}} which allows the caller
  144. to control when it wants to receive more data. If this option
  145. is used, the call ibrowse:stream_next(Req_id) should be used
  146. to get more data.
  147. - Patch submitted by Steve Vinoski to remove compiler warnings
  148. about the use of obsolete guards
  149. 29-06-2009 - * Fixed following issues reported by Oscar Hellström
  150. - Use {active, once} instead of {active, true}
  151. - Fix 'dodgy' timeout handling
  152. - Use binaries internally instead of lists to reduce memory
  153. consumption on 64 bit platforms. The default response format
  154. is still 'list' to maintain backwards compatibility. Use the
  155. option {response_format, binary} to get responses as binaries.
  156. * Fixed chunking bug (reported by Adam Kocoloski)
  157. * Added new option {inactivity_timeout, Milliseconds} to timeout
  158. requests if no data is received on the link for the specified
  159. interval. Useful when responses are large and links are flaky.
  160. * Added ibrowse:all_trace_off/0 to turn off all tracing
  161. * Change to the way responses to asynchronous requests are
  162. returned. The following messages have been removed.
  163. * {ibrowse_async_response, Req_id, {chunk_start, Chunk_size}}
  164. * {ibrowse_async_response, Req_id, chunk_end}
  165. * Fixed Makefiles as part of Debian packaging
  166. (thanks to Thomas Lindgren)
  167. * Moved repository from Sourceforge to Github
  168. 11-06-2009 - * Added option to control size of streamed chunks. Also added
  169. option for the client to receive responses in binary format.
  170. 21-05-2008 - * Fixed bug in reading some options from the ibrowse.conf file.
  171. Reported by Erik Reitsma on the erlyaws mailing list
  172. * Fixed bug when cleaning up closing connections
  173. 27-03-2008 - * Major rewrite of the load balancing feature. Additional module,
  174. ibrowse_lb.erl, introduced to achieve this.
  175. * Can now get a handle to a connection process which is not part of
  176. the load balancing pool. Useful when an application is making
  177. requests to a webserver which are time consuming (such as
  178. uploading a large file). Such requests can be put on a separate
  179. connection, and all other smaller/quicker requests can use the
  180. load balancing pool. See ibrowse:spawn_worker_process/2 and
  181. ibrowse:spawn_link_worker_process/2
  182. * Ram Krishnan sent a patch to enable a client to send a lot of
  183. data in a request by providing a fun which is invoked by the
  184. connection handling process. This fun can fetch the data from
  185. any where. This is useful when trying to upload a large file
  186. to a webserver.
  187. * Use the TCP_NODELAY option on every socket by default
  188. * Rudimentary support for load testing of ibrowse. Undocumented,
  189. but see ibrowse_test:load_test/3. Use the source, Luke!
  190. * New function ibrowse:show_dest_status/2 to view state of
  191. connections/pipelines to a web server
  192. 20-02-2008 - Ram Krishnan sent another patch for another hidden bug in the
  193. save_response_to_file feature.
  194. 07-02-2008 - Ram Krishnan (kriyative _at_ gmail dot com) sent a simple patch to
  195. enable specifying the filename in the save_response_to_file option.
  196. When testing the patch, I realised that my original implementation
  197. of this feature was quite flaky and a lot of corner cases were
  198. not covered. Fixed all of them. Thanks Ram!
  199. 17-10-2007 - Matthew Reilly (matthew dot reilly _at_ sipphone dot com)
  200. sent a bug report and a fix. If the chunk trailer spans two TCP
  201. packets, then ibrowse fails to recognise that the chunked transfer
  202. has ended.
  203. 29-08-2007 - Bug report by Peter Kristensen(ptx _at_ daimi dot au dot dk).
  204. ibrowse crashes when the webserver returns just the Status line
  205. and nothing else.
  206. 28-06-2007 - Added host_header option to enable connection to secure sites
  207. via stunnel
  208. 20-04-2007 - Geoff Cant sent a patch to remove URL encoding for digits in
  209. ibrowse_lib:url_encode/1.
  210. ibrowse had a dependency on the inets application because the
  211. ibrowse_http_client.erl invoked httpd_util:encode_base64/1. This
  212. dependency is now removed and the encode_base64/1 has been
  213. implemented in ibrowse_lib.erl
  214. 06-03-2007 - Eric Merritt sent a patch to support WebDAV requests.
  215. 12-01-2007 - Derek Upham sent in a bug fix. The reset_state function was not
  216. behaving correctly when the transfer encoding was not chunked.
  217. 13-11-2006 - Youn�s Hafri reported a bug where ibrowse was not returning the
  218. temporary filename when the server was closing the connection
  219. after sending the data (as in HTTP/1.0).
  220. Released ibrowse under the BSD license
  221. 12-10-2006 - Chris Newcombe reported bug in dealing with requests where no
  222. body is expected in the response. The first request would succeed
  223. and the next request would hang.
  224. 24-May-2006 - Sean Hinde reported a bug. Async responses with pipelining was
  225. returning the wrong result.
  226. 08-Dec-2005 - Richard Cameron (camster@citeulike.org). Patch to ibrowse to
  227. prevent port number being included in the Host header when port
  228. 80 is intended.
  229. 22-Nov-2005 - Added ability to generate requests using the Chunked
  230. Transfer-Encoding.
  231. 08-May-2005 - Youn�s Hafri made a CRUX LINUX port of ibrowse.
  232. http://yhafri.club.fr/crux/index.html
  233. Here are some usage examples. Enjoy!
  234. 5> ibrowse:start().
  235. {ok,<0.94.0>}
  236. %% A simple GET
  237. 6> ibrowse:send_req("http://intranet/messenger/", [], get).
  238. {ok,"200",
  239. [{"Server","Microsoft-IIS/5.0"},
  240. {"Content-Location","http://intranet/messenger/index.html"},
  241. {"Date","Fri, 17 Dec 2004 15:16:19 GMT"},
  242. {"Content-Type","text/html"},
  243. {"Accept-Ranges","bytes"},
  244. {"Last-Modified","Fri, 17 Dec 2004 08:38:21 GMT"},
  245. {"Etag","\"aa7c9dc313e4c41:d77\""},
  246. {"Content-Length","953"}],
  247. "<html>\r\n\r\n<head>\r\n<title>Messenger</title>\r\n<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 5.0\">\r\n<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\r\n<meta name=\"description\" content=\"Messenger Home Page\">\r\n</head>\r\n\r\n<frameset border=\"0\" frameborder=\"0\" rows=\"60,*\">\r\n <frame src=\"/messenger/images/topnav.html\" name=\"mFrameTopNav\" scrolling=\"NO\" target=\"mFrameMain\">\r\n <frameset cols=\"18%,*\">\r\n <frameset rows=\"*,120\">\r\n <frame src=\"index-toc.html\" name=\"mFrameTOC\" target=\"mFrameMain\" scrolling=\"auto\" noresize=\"true\">\r\n <frame src=\"/shared/search/namesearch.html\" name=\"mFrameNameSearch\" scrolling=\"NO\" target=\"mFrameMain\">\r\n </frameset>\r\n <frame src=\"home/16-12-04-xmascardsmms.htm\" name=\"mFrameMain\" scrolling=\"auto\" target=\"mFrameMain\" id=\"mFrameMain\">\r\n </frameset>\r\n <noframes>\r\n <body>\r\n\r\n <p><i>This site requires a browser that can view frames.</i></p>\r\n\r\n </body>\r\n </noframes>\r\n</frameset>\r\n\r\n</html>"}
  248. %% =============================================================================
  249. %% A GET using a proxy
  250. 7> ibrowse:send_req("http://www.google.com/", [], get, [],
  251. [{proxy_user, "XXXXX"},
  252. {proxy_password, "XXXXX"},
  253. {proxy_host, "proxy"},
  254. {proxy_port, 8080}], 1000).
  255. {ok,"302",
  256. [{"Date","Fri, 17 Dec 2004 15:22:56 GMT"},
  257. {"Content-Length","217"},
  258. {"Content-Type","text/html"},
  259. {"Set-Cookie",
  260. "PREF=ID=f58155c797f96096:CR=1:TM=1103296999:LM=1103296999:S=FiWdtAqQvhQ0TvHq; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com"},
  261. {"Server","GWS/2.1"},
  262. {"Location",
  263. "http://www.google.co.uk/cxfer?c=PREF%3D:TM%3D1103296999:S%3Do8bEY2FIHwdyGenS&prev=/"},
  264. {"Via","1.1 netapp01 (NetCache NetApp/5.5R2)"}],
  265. "<HTML><HEAD><TITLE>302 Moved</TITLE></HEAD><BODY>\n<H1>302 Moved</H1>\nThe document has moved\n<A HREF=\"http://www.google.co.uk/cxfer?c=PREF%3D:TM%3D1103296999:S%3Do8bEY2FIHwdyGenS&amp;prev=/\">here</A>.\r\n</BODY></HTML>\r\n"}
  266. %% =============================================================================
  267. %% A GET response saved to file. A temporary file is created and the
  268. %% filename returned. The response will only be saved to file is the
  269. %% status code is in the 200 range. The directory to download to can
  270. %% be set using the application env var 'download_dir' - the default
  271. %% is the current working directory.
  272. 8> ibrowse:send_req("http://www.erlang.se/", [], get, [],
  273. [{proxy_user, "XXXXX"},
  274. {proxy_password, "XXXXX"},
  275. {proxy_host, "proxy"},
  276. {proxy_port, 8080},
  277. {save_response_to_file, true}], 1000).
  278. {error,req_timedout}
  279. %% =============================================================================
  280. 9> ibrowse:send_req("http://www.erlang.se/", [], get, [],
  281. [{proxy_user, "XXXXX"},
  282. {proxy_password, "XXXXX"},
  283. {proxy_host, "proxy"},
  284. {proxy_port, 8080},
  285. {save_response_to_file, true}], 5000).
  286. {ok,"200",
  287. [{"Transfer-Encoding","chunked"},
  288. {"Date","Fri, 17 Dec 2004 15:24:36 GMT"},
  289. {"Content-Type","text/html"},
  290. {"Server","Apache/1.3.9 (Unix)"},
  291. {"Via","1.1 netapp01 (NetCache NetApp/5.5R2)"}],
  292. {file,"/Users/chandru/code/ibrowse/src/ibrowse_tmp_file_1103297041125854"}}
  293. %% =============================================================================
  294. %% Setting size of connection pool and pipeline size. This sets the
  295. %% number of maximum connections to this server to 10 and the pipeline
  296. %% size to 1. Connections are setup a required.
  297. 11> ibrowse:set_dest("www.hotmail.com", 80, [{max_sessions, 10},
  298. {max_pipeline_size, 1}]).
  299. ok
  300. %% =============================================================================
  301. %% Example using the HEAD method
  302. 56> ibrowse:send_req("http://www.erlang.org", [], head).
  303. {ok,"200",
  304. [{"Date","Mon, 28 Feb 2005 04:40:53 GMT"},
  305. {"Server","Apache/1.3.9 (Unix)"},
  306. {"Last-Modified","Thu, 10 Feb 2005 09:31:23 GMT"},
  307. {"Etag","\"8d71d-1efa-420b29eb\""},
  308. {"Accept-ranges","bytes"},
  309. {"Content-Length","7930"},
  310. {"Content-Type","text/html"}],
  311. []}
  312. %% =============================================================================
  313. %% Example using the OPTIONS method
  314. 62> ibrowse:send_req("http://www.sun.com", [], options).
  315. {ok,"200",
  316. [{"Server","Sun Java System Web Server 6.1"},
  317. {"Date","Mon, 28 Feb 2005 04:44:39 GMT"},
  318. {"Content-Length","0"},
  319. {"P3p",
  320. "policyref=\"http://www.sun.com/p3p/Sun_P3P_Policy.xml\", CP=\"CAO DSP COR CUR ADMa DEVa TAIa PSAa PSDa CONi TELi OUR SAMi PUBi IND PHY ONL PUR COM NAV INT DEM CNT STA POL PRE GOV\""},
  321. {"Set-Cookie",
  322. "SUN_ID=X.X.X.X:169191109565879; EXPIRES=Wednesday, 31-Dec-2025 23:59:59 GMT; DOMAIN=.sun.com; PATH=/"},
  323. {"Allow",
  324. "HEAD, GET, PUT, POST, DELETE, TRACE, OPTIONS, MOVE, INDEX, MKDIR, RMDIR"}],
  325. []}
  326. %% =============================================================================
  327. %% Example of using Asynchronous requests
  328. 18> ibrowse:send_req("http://www.google.com", [], get, [],
  329. [{proxy_user, "XXXXX"},
  330. {proxy_password, "XXXXX"},
  331. {proxy_host, "proxy"},
  332. {proxy_port, 8080},
  333. {stream_to, self()}]).
  334. {ibrowse_req_id,{1115,327256,389608}}
  335. 19> flush().
  336. Shell got {ibrowse_async_headers,{1115,327256,389608},
  337. "302",
  338. [{"Date","Thu, 05 May 2005 21:06:41 GMT"},
  339. {"Content-Length","217"},
  340. {"Content-Type","text/html"},
  341. {"Set-Cookie",
  342. "PREF=ID=b601f16bfa32f071:CR=1:TM=1115327201:LM=1115327201:S=OX5hSB525AMjUUu7; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com"},
  343. {"Server","GWS/2.1"},
  344. {"Location",
  345. "http://www.google.co.uk/cxfer?c=PREF%3D:TM%3D1115327201:S%3DDS9pDJ4IHcAuZ_AS&prev=/"},
  346. {"Via",
  347. "1.1 hatproxy01 (NetCache NetApp/5.6.2)"}]}
  348. Shell got {ibrowse_async_response,{1115,327256,389608},
  349. "<HTML><HEAD><TITLE>302 Moved</TITLE></HEAD><BODY>\n<H1>302 Moved</H1>\nThe document has moved\n<A HREF=\"http://www.google.co.uk/cxfer?c=PREF%3D:TM%3D1115327201:S%3DDS9pDJ4IHcAuZ_AS&amp;prev=/\">here</A>.\r\n</BODY></HTML>\r\n"}
  350. Shell got {ibrowse_async_response_end,{1115,327256,389608}}
  351. ok
  352. %% =============================================================================
  353. %% Another example of using async requests
  354. 24> ibrowse:send_req("http://yaws.hyber.org/simple_ex2.yaws", [], get, [],
  355. [{proxy_user, "XXXXX"},
  356. {proxy_password, "XXXXX"},
  357. {proxy_host, "proxy"},
  358. {proxy_port, 8080},
  359. {stream_to, self()}]).
  360. {ibrowse_req_id,{1115,327430,512314}}
  361. 25> flush().
  362. Shell got {ibrowse_async_headers,{1115,327430,512314},
  363. "200",
  364. [{"Date","Thu, 05 May 2005 20:58:08 GMT"},
  365. {"Content-Length","64"},
  366. {"Content-Type","text/html;charset="},
  367. {"Server",
  368. "Yaws/1.54 Yet Another Web Server"},
  369. {"Via",
  370. "1.1 hatproxy01 (NetCache NetApp/5.6.2)"}]}
  371. Shell got {ibrowse_async_response,{1115,327430,512314},
  372. "<html>\n\n\n<h1> Yesssssss </h1>\n\n<h2> Hello again </h2>\n\n\n</html>\n"}
  373. Shell got {ibrowse_async_response_end,{1115,327430,512314}}
  374. %% =============================================================================
  375. %% Example of request which fails when using the async option. Here
  376. %% the {ibrowse_req_id, ReqId} is not returned. Instead the error code is
  377. %% returned.
  378. 68> ibrowse:send_req("http://www.earlyriser.org", [], get, [], [{stream_to, self()}]).
  379. {error,conn_failed}
  380. %% Example of request using both Proxy-Authorization and authorization by the final webserver.
  381. 17> ibrowse:send_req("http://www.erlang.se/lic_area/protected/patches/erl_756_otp_beam.README",
  382. [], get, [],
  383. [{proxy_user, "XXXXX"},
  384. {proxy_password, "XXXXX"},
  385. {proxy_host, "proxy"},
  386. {proxy_port, 8080},
  387. {basic_auth, {"XXXXX", "XXXXXX"}}]).
  388. {ok,"200",
  389. [{"Accept-Ranges","bytes"},
  390. {"Date","Thu, 05 May 2005 21:02:09 GMT"},
  391. {"Content-Length","2088"},
  392. {"Content-Type","text/plain"},
  393. {"Server","Apache/1.3.9 (Unix)"},
  394. {"Last-Modified","Tue, 03 May 2005 15:08:18 GMT"},
  395. {"ETag","\"1384c8-828-427793e2\""},
  396. {"Via","1.1 hatproxy01 (NetCache NetApp/5.6.2)"}],
  397. "Patch Id:\t\terl_756_otp_beam\nLabel:\t\t\tinets patch\nDate:\t\t\t2005-05-03\nTrouble Report Id:\tOTP-5513, OTP-5514, OTP-5516, OTP-5517, OTP-5521, OTP-5537\nSeq num:\t\tseq9806\nSystem:\t\t\totp\nRelease:\t\tR10B\nOperating System:\tall\nArchitecture:\t\tall\nErlang machine:\t\tBEAM\nApplication:\t\tinets-4.4\nFiles:\t\t\tall\n\nDescription:\n\n OTP-5513 The server did not handle HTTP-0.9 messages with an implicit\n\t version.\n\n OTP-5514 An internal server timeout killed the request handling\n\t process without sending a message back to the client. As this\n\t timeout only affects a single request it has been set to\n\t infinity (if the main server process dies the request\n\t handling process will also die and the client will receive an\n\t error). This might make a client that does not use a timeout\n\t hang for a longer period of time, but that is an expected\n\t behavior!\n\n OTP-5516 That a third party closes the http servers accept socket is\n\t recoverable for inets, hence intes will only produce an info\n\t report as there was no error in inets but measures where\n\t taken to avoid failure due to errors elsewhere.\n\n OTP-5517 The HTTP client proxy settings where ignored. Bug introduced\n\t in inets-4.3.\n\n OTP-5521 Inets only sent the \"WWW-Authenticate\" header at the first\n\t attempt to get a page, if the user supplied the wrong\n\t user/password combination the header was not sent again. This\n\t forces the user to kill the browser entirely after a failed\n\t login attempt, before the user may try to login again. Inets\n\t now always send the authentication header.\n\n OTP-5537 A major rewrite of big parts of the HTTP server code was\n\t performed. There where many things that did not work\n\t satisfactory. Cgi script handling can never have worked\n\t properly and the cases when it did sort of work, a big\n\t unnecessary delay was enforced. Headers where not always\n\t treated as expected and HTTP version handling did not work,\n\t all responses where sent as version HTTP/1.1 no matter what.\n\n\n"}
  398. %% =============================================================================
  399. %% Example of a TRACE request. Very interesting! yaws.hyber.org didn't
  400. %% support this. Nor did www.google.com. But good old BBC supports
  401. %% this.
  402. 35> 37> ibrowse:send_req("http://www.bbc.co.uk/", [], trace, [],
  403. [{proxy_user, "XXXXX"},
  404. {proxy_password, "XXXXX"},
  405. {proxy_host, "proxy"},
  406. {proxy_port, 8080}]).
  407. {ok,"200",
  408. [{"Transfer-Encoding","chunked"},
  409. {"Date","Thu, 05 May 2005 21:40:27 GMT"},
  410. {"Content-Type","message/http"},
  411. {"Server","Apache/2.0.51 (Unix)"},
  412. {"Set-Cookie",
  413. "BBC-UID=7452e72a29424c5b0b232c7131c7d9395d209b7170e8604072e0fcb3630467300; expires=Mon, 04-May-09 21:40:27 GMT; path=/; domain=bbc.co.uk;"},
  414. {"Set-Cookie",
  415. "BBC-UID=7452e72a29424c5b0b232c7131c7d9395d209b7170e8604072e0fcb3630467300; expires=Mon, 04-May-09 21:40:27 GMT; path=/; domain=bbc.co.uk;"},
  416. {"Via","1.1 hatproxy01 (NetCache NetApp/5.6.2)"}],
  417. "TRACE / HTTP/1.1\r\nHost: www.bbc.co.uk\r\nConnection: keep-alive\r\nX-Forwarded-For: 172.24.28.29\r\nVia: 1.1 hatproxy01 (NetCache NetApp/5.6.2)\r\nCookie: BBC-UID=7452e72a29424c5b0b232c7131c7d9395d209b7170e8604072e0fcb3630467300\r\n\r\n"}