伙计们,请查看此HTML代码:
<select name="dnn$ctr73224$ViewResponsive$sizeDdl" id="sizeDdl" style="display:block">
<option value="" selected="selected">Please select</option>
<option value="extra sml" class="greyOut" title="Extra Sml Navy is out of stock">Extra Sml</option>
<option value="small" title="Small" class="" selected="selected">Small</option>
<option value="medium" title="Medium" selected="selected">Medium</option>
<option value="large" title="Large">Large</option>
<option value="extra lge" title="Extra Lge" class="">Extra Lge</option>
<option value="xx large" class="greyOut" title="XX Large Navy is out of stock">XX Large</option>
<option value="xxx large" class="greyOut" title="XXX Large Navy is out of stock">XXX Large</option>
<option value="xxxx large" class="greyOut" title="XXXX Large Navy is out of stock">XXXX Large</option>
</select>
这是HTML页面的输出源代码。
如您所见,有一个选择菜单。
我想问一下,有什么方法可以通过Curl模拟选项吗?
我使用curl来解析此页面中的HTML dom元素。
提前致谢!