mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-18 08:02:12 +03:00
f82ed05d9a
Previously, the parser was rather raw: we processed the buffer bytes by bytes, checking if the buffer was a valid XML file. Now, we use libxml SAX parser to detect the end of the XML.
2 lines
23 KiB
JSON
2 lines
23 KiB
JSON
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/post-xml","body":{"type":"xml","value":"<?xml version=\"1.0\"?>\n<drink>café</drink>"}},"response":{"status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-xml-no-prolog","body":{"type":"xml","value":"<drink>café</drink>"}},"response":{"status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-xml-large","body":{"type":"xml","value":"<?xml version='1.0' ?>\n<root>\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name>MH of San Francisco,</bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items>\n 8\n </num_items>\n <num_bids></num_bids>\n <started_at>$9</started_at>\n <bid_increment>$10</bid_increment>\n <location></location>\n <opened></opened>\n <closed>Mon Nov 27, 2:00 pm PT</closed>\n <id_num>\n 3699803\n </id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n $2459\n </highest_bid_amount>\n <quantity>1</quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu>\n 900MHz\n </cpu>\n <brand>HP Pavilion</brand>\n <description>The Pavilion 9780C gives you\n everything you need in a home\n PC, from the exhilarating\n multimedia experience of DVD to\n the customized music-making\n abilities of the HP CD-Writer\n Plus - it's all in a hot\n translucent blue case! Monitor\n not included.\n\n\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name></bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items></num_items>\n <num_bids></num_bids>\n <started_at></started_at>\n <bid_increment></bid_increment>\n <location></location>\n <opened></opened>\n <closed></closed>\n <id_num></id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu></cpu>\n <brand></brand>\n <description>\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name></bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items></num_items>\n <num_bids></num_bids>\n <started_at></started_at>\n <bid_increment></bid_increment>\n <location></location>\n <opened></opened>\n <closed></closed>\n <id_num></id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu></cpu>\n <brand></brand>\n <description>\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name>tx of Santa Clara</seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name></bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items>2</num_items>\n <num_bids></num_bids>\n <started_at></started_at>\n <bid_increment></bid_increment>\n <location></location>\n <opened></opened>\n <closed>Mon Nov 27, 2:30 pm PT</closed>\n <id_num>\n 3699948\n </id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n $3837\n </highest_bid_amount>\n <quantity>2</quantity>\n </bid_history>\n <item_info>\n <memory>128MB high-performance PC133 ECC SDRAM Maximum: 4GB memory\n capacity (3.3GB maximum usable memory)\n </memory>\n <hard_drive>Open bay - none installed or includedSupports 9.1GB and 18.2GB 7,200rpm Ultra2\n SCSI disk drivesSupports 9.1GB, 18.2GB, and 36.4GB 10,000rpm Ultra2 SCSI disk\n drives\n </hard_drive>\n <cpu>Intel Pentium III 800MHz</cpu>\n <brand>Hewlett Packard NetServer LH3000 Pentium III 800MHz\n 128MB RAM/Open Bay/32X CD/No OS\n </brand>\n <description>\n HP NetServer LH 3000 Pentium III 800MHzThis rack mount HP\n NetServer LH 3000 brings higher performance and reliability to\n meet your demanding departmental server requirements.\n Incorporating performance, storage, and high-availability\n technologies, this workhorse is loaded with features you'd\n expect only in high-end servers.Key Features At a Glance:\n Extraordinary performance -- dual Intel Pentium III processor\n capability (one 800MHz processor included)- with 133MHz front\n side bus, PC 133MHz ECC SDRAM, and performance-boosting\n integrated RAID controller. Best-in-class reliability and\n uptime -- with fully hot-swappable/hot-pluggable components,\n including disk drives, power supplies, fans, and hot-plug PCI\n slots. Includes widely adopted, fault-tolerant RAID 5\n technology-using an embedded, dual-channel NetRAID controller\n with optional battery backup, hardware-based parity (XOR)\n logic, and 32MB cache-expandable to 128MB. Excellent\n investment protection -- the HP NetServer LH 3000's design\n makes it easily upgradable as higher scalability Xeon servers\n and new processor enhancements become available. HP OpenView\n ManageX Event Manager -- for simplified NOS and high\n availability system management. Intelligent management -- a\n comprehensive tool set to monitor your server hardware and\n software from anywhere, anytime. Simple installation-rack\n mount form factor version.\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name>LW of Sugar Land</bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items>1</num_items>\n <num_bids></num_bids>\n <started_at>\n $9\n </started_at>\n <bid_increment>\n $20\n </bid_increment>\n <location></location>\n <opened></opened>\n <closed>\n Mon Nov 27, 2:30 pm PT\n </closed>\n <id_num>3699893</id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>$2392\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu></cpu>\n <brand>Hewlett Packard NetServe</brand>\n <description>Refurbished and warranted by\n manufacturer! Dual processing\n capability (one 800MHz Pentium\n III processor provided)!!!\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name>BT of Los Angeles</bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items>2</num_items>\n <num_bids></num_bids>\n <started_at>$9</started_at>\n <bid_increment>$20</bid_increment>\n <location></location>\n <opened></opened>\n <closed>Mon Nov 27, 2:30 pm PT</closed>\n <id_num>\n 3699928\n </id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n $2475\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory>AM memory\n expandable to 4GB (128MB\n provided)\n </memory>\n <hard_drive></hard_drive>\n <cpu>800MHz Pentium III processor</cpu>\n <brand></brand>\n <description>Dual processing capability(one\n 800MHz Pentium III processor\n providedd)!! RAM memory\n expandable to 4GB (128MB\n provided)!! Refurbished and\n warranted by manufacturer!!HP NetServer LC 2000 Pentium III 800MHz -- The rock-solid\n workgroup server your growing business can depend on --This HP\n NetServer LC 2000 offers an innovative solution that delivers\n top quality to corporate workgroups, branch offices and\n quickly-growing small businesses with: High tech and high\n touch -- designed to be simple to install, configure and\n upgrade, all HP NetServer LC 2000 components are easily\n accessible and designed for tool-less service -- accented by\n color-coded \"touch points\" High availability -- created to\n deliver the most essential uptime-protecting technologies to\n meet your computing needs. With more hot-swappable and\n redundant components in a workgroup server, the LC 2000\n creates a super-reliable foundation for the growing network\n Intelligent management -- the HP NetServer LC 2000 is\n complemented by a hardware and NOS management suite that\n combines unmatched flexibility with simplicity for precise\n control. HP management tools ensure that your workgroup and\n remote office IT professionals can manage the LC 2000 from any\n location. Best-in-class uptime protection -- with up to six\n hot-swappable disk drive bays, standard redundant,\n hot-swappable fans, optional hot-swappable redundant power\n supplies, support for redundant NICS, and duplexing Freedom\n to expand -- with dual processing capability (one 800MHz\n Pentium III processor provided), capacity for up to 4GB SDRAM\n (128MB standard), expandable storage capability and six open\n PCI slots, the HP NetServer LC 2000 offers room for growth\n that is unprecedented in a workgroup serverThis LC 2000\n provides top quality in a server for corporate workgroups,\n branch offices and quickly growing small businesses that want\n enterprise-level system reliability features. Designed with\n simplicity for easy installation, the HP NetServer LC 2000\n meets the demands of your quickly growing business today and\n offers the capability to expand as your workplace computing\n needs increase in the\n future.********************************** -- F E A T U R E S A\n T A GLANCE --PROCESSOR:One Intel Pentium III 800MHz (dual\n capability with upgrade) with 133MHz front-side bus256K on-die\n write-back cacheMEMORY: Standard: 128MB SDRAM PC-133 DIMM per\n slotMaximum: 4GB Four DIMM sockets HARD DISK DRIVE : Open\n baySTORAGE : Diskette drive: 3.5\" 1.44MBCD-ROM drive: Maximum\n 32X IDENETWORK CONTROLLER:Integrated 10/100TX NIC (supports\n redundant NICs)BUS SPEED:133MHz front-side bus EXPANSION\n SLOTS:Two 64-bit and four 32-bit PCI slotsPeer 32-bit/64-bit\n PCI buses, both at 33MHzPORTS:One serial portOne 25-pin\n parallel portOne SCSI knockout port for external\n connectionsOne server management port (serial)Video\n port-SVGAMini-DIN keyboard and mouse portsSTORAGE\n CONTROLLER:Embedded dual channel Ultra-2 SCSIVIDEO:Embedded\n ATI Rage IIc video controller1024x768, 64K color at 75Hz2MB\n SGRAMPOWER SUPPLY:349 Watts (Nominal, 100-127/200-240V AC,\n 50/60Hz; range, 90-140/180-264V AC, 47/63Hz)FORM\n 648mm (25.5\") without bezelOPERATING SYSTEM:None installed or\n includedOPTIONAL OPERATING SYSTEMS SUPPORTED:Microsoft Windows\n NT 4.0Windows2000Novell NetWare 4.2, 5.0Red Hat LinuxSCO\n OpenServerUnixWare****************************************HP\n NetServer LC 2000 -- the rock-solid workgroup server your\n growing business can depend on!\n\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name>RP of Cleveland</bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items>1</num_items>\n <num_bids></num_bids>\n <started_at>$9</started_at>\n <bid_increment>\n $10\n </bid_increment>\n <location></location>\n <opened></opened>\n <closed>Mon Nov 27, 3:00 pm PT</closed>\n <id_num>\n 3697285\n </id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>$3000\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory>28MB PC133 SDRAM 168-Pin Memory, 3.3 volt Non-ECC, Non-Buffered, 7.5ns\n Speed\n </memory>\n <hard_drive>30GB 7200 RPM IDE Hard Drive with UltraDMA 66 interface to ensure maximum data\n throughput\n </hard_drive>\n <cpu>III 800MHz Processor with 133MHz Bus</cpu>\n <brand></brand>\n <description>Elite PC PIII 800MHz 128MB RAM 30GB HD 10X DVD\n 32MB VID/56K/NIC/3D SND/No OS\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name></bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items></num_items>\n <num_bids></num_bids>\n <started_at></started_at>\n <bid_increment></bid_increment>\n <location></location>\n <opened></opened>\n <closed></closed>\n <id_num></id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu></cpu>\n <brand></brand>\n <description>\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name></bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items></num_items>\n <num_bids></num_bids>\n <started_at></started_at>\n <bid_increment></bid_increment>\n <location></location>\n <opened></opened>\n <closed></closed>\n <id_num></id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu></cpu>\n <brand></brand>\n <description>\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name></bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items></num_items>\n <num_bids></num_bids>\n <started_at></started_at>\n <bid_increment></bid_increment>\n <location></location>\n <opened></opened>\n <closed></closed>\n <id_num></id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu></cpu>\n <brand></brand>\n <description>\n </description>\n </item_info>\n </listing>\n\n <listing>\n <seller_info>\n <seller_name></seller_name>\n <seller_rating></seller_rating>\n </seller_info>\n <payment_types>\n </payment_types>\n <shipping_info>\n </shipping_info>\n <buyer_protection_info>\n </buyer_protection_info>\n <auction_info>\n <current_bid></current_bid>\n <time_left></time_left>\n <high_bidder>\n <bidder_name></bidder_name>\n <bidder_rating></bidder_rating>\n </high_bidder>\n <num_items></num_items>\n <num_bids></num_bids>\n <started_at></started_at>\n <bid_increment></bid_increment>\n <location></location>\n <opened></opened>\n <closed></closed>\n <id_num></id_num>\n <notes></notes>\n </auction_info>\n <bid_history>\n <highest_bid_amount>\n </highest_bid_amount>\n <quantity></quantity>\n </bid_history>\n <item_info>\n <memory></memory>\n <hard_drive></hard_drive>\n <cpu></cpu>\n <brand></brand>\n <description>\n </description>\n </item_info>\n </listing>\n</root>"}},"response":{"status":200}}]}
|