tags:

views:

29

answers:

1

I would like to use rebol to download an xml backup of my blog from

http://reboltutorial.com/wp-admin/export.php

the form is

<form action="" method="get">
<h3>Options</h3>

<table class="form-table">
<tr>
<th><label for="author">Restrict Author</label></th>
<td>
<select name="author" id="author">
<option value="all" selected="selected">All Authors</option>
<option value='1'>admin</option></select>
</td>
</tr>
</table>
<p class="submit"><input type="submit" name="submit" class="button" value="Download Export File" />
<input type="hidden" name="download" value="true" />
</p>

</form>

I guess I would first need to log in http://reboltutorial.com/login/ and then what after ? Any code example to do similar stuff (getting the cookie, ...) ?

<form name="loginform" id="loginform" action="" method="post">
    <p>
        <label>Username<br />
        <input type="text" name="log" id="user_login" class="input" value="" size="20" /></label>
    </p>
    <p>

        <label>Password<br />
        <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /></label>
    </p>
    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> Remember Me</label></p>
    <p class="submit">
        <input type="hidden" name="post-from" id="post-from" value="page" />
        <input type="hidden" name="action" id="action" value="login" />

        <input type="submit" name="wp-submit" id="wp-submit" value="Log In" />
        <input type="hidden" name="redirect_to" value="http://reboltutorial.com/wp-admin/" />
        <input type="hidden" name="testcookie" value="1" />
    </p>
</form>
+1  A: 

Try this

http://rebol.wik.is/Protocols/Http

Graham Chiu
OK will try, thanks.
Rebol Tutorial