On 2011.09.09 01:19, dweller wrote:
> "Vilius Jakas"<vilius@anet.lt> wrote in message news:j434ih$8ni$1@trimpas.omnitel.net...
>> 5. To POST to a page.
>>
>> You can also process a POST request using CURL. The data will use the
>> application/x-www-form-urlencoded encoding. Lets say you have the
>> following POST form in your page:
>>
>> <form method="POST" action="process.php">
>> <input type=text name="item">
>> <input type=text name="category">
>> <input type=submit name="submit" value="ok">
>> </form>
>>
>> You can use the following CURL command to POST the request.
>>
>> curl -d "item=bottle&category=consumer&submit=ok"
>> www.example.com/process.php
>>
>> O štai kaip atrodo http://www.autobusubilietai.lt/ ir ten nerandu input
>> type, name ir pan
>
> susirandi sita eilute, ir ziuri forma po ja
> <div class="infoBar">Pasirinkite kur ir kada norite vykti, gausite autobusų maršrutų tvarkaraštį ir galėsite nusipirkti bilietą</div>
Aš bandžiau daryti pagal šitas formas
<div id="div_travel_station_from" class="frow fixed">
<label for="travel_station_from">Važiuoti iš:</label>
<input type="text" class="text" id="travel_station_from"
tabindex="5" name="editval[travel_station_from]" value="" size="20"
maxlength="128">
</div>
ir
<div id="div_travel_station_to" class="frow fixed">
<label for="travel_station_to">Važiuoti į:</label>
<input type="text" class="text" id="travel_station_to"
tabindex="6" name="editval[travel_station_to]" value="" size="20"
maxlength="128" />
</div>
curl --data
"editval[travel_station_from]=Vilnius&editval[travel_station_to]=Alytus&submitbutton=Tęsti"
www.autobusubilietai.lt
ir
curl -o k.html --data
"editval%5Btravel_station_from%5D=Vilnius&editval%5Btravel_station_to%5D=Alytus&submitbutton=T%C4%99sti"
www.autobusubilietai.lt
Bet vistiek tai nepadeda