Matthew,

I looked into my cached copy of http-post.r which is what I have that is
reading the alta-vista site.
It was not working because the alta vista site has changed since it was
written.
The url is different and the formatting of the results are different.
This is one of the challenges of reading a user interface screen for data.

If you save this html content as a file on your machine:

html><head><title>Basic Babel</title></head>
<body bgcolor=linen>
<form action="http://babelfish.altavista.com/tr"; method=get>
<textarea rows="6" wrap=virtual cols="38"  style="width:400" name="urltext"
>This is a test</textarea>
<input type="hidden" name="enc" value="utf8"><br>
<input type="hidden" name="lp" value="en_de"><br>
<input type="Submit" value="Translate">
<input type="hidden" name=tt value="urltext">
</td>
</form>
</body></html>

and submit it through your browser you will see a result page from the
translation.
Then you can see what you have to change the example to.

I will look at the Rogers example later ... much later.


----- Original Message -----
From: "Matthew Kim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 08, 2002 1:05 AM
Subject: [REBOL] Re: Newbie: Trouble filling a form using "http-post.r"


> Hey, that's a pretty neat trick!
>
> Well, I tried what you suggested, but it still doesn't seem to work.  I
> also tried using all the variables listed included
>
> sm_logo
> sm_status_ok
>
> etc...
>
> but that still didn't work.
>
> Am I interpreting the REBOL code properly?  For instance, is this
> correct?
>
> english-to-german: func [
>    ; {Translates a string in English to German, using
> babelfish.altavista.com}
>    ; english-text "String in english"
> ;][
>     not-lt-gt: complement charset [#"<" #">"]
>     tag-rule: ["<" some not-lt-gt ">"]
>
>     tmp: http-post-form
> http://216.129.53.44:8080/cgi-bin/send_sm_rogers.new reduce [
>
>     "msisdn" "4165551212"
>     "area" "416"
>     "num1" "555"
>     "num2" "1212"
>     "oldtext" "testing"
>     "text" "testing"
>     "SIZEBOX" "7"
>
>     "sm_title" "Rogers+%7C+Wireless"
>     "sm_header_ok" "Thank+You"
>     "sm_header_fail" "Sorry"
> "sm_ym" "Your+Message%3A+"
> "sm_status_ok" "has+been+sent+to%3A"
> "sm_status_fail" "cannot+presently+be+sent+to%3A+"
> "sm_logo" "%2Fatt-logo.gif"
> "sm_pcs_link"
> "http%3A%2F%2Fwww.rogers.com%2Fenglish%2Fwireless%2Fsendpcs.html"
> "sm_pcs_text" "Send+a+PCS+message"
> "sm_home_link" "http%3A%2F%2Fwww.rogers.com"
> "sm_home_text" "home"
>     ]
>


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to