Rebol Tutorial
Rebol Tutorial

Reputation: 2754

Tried http post doesn't work

I wanted to try the example here

http://www.codeconscious.com/rebol/rebol-net.html#HTTP

print read/custom http://babelfish.altavista.com/translate.dyn reduce ['POST {text=REBOL+Rules&lp=en_fr}]

Since the page has changed since I modified it to

write clipboard:// read/custom http://babelfish.altavista.com/translate.dyn reduce ['POST {trtext=hello+world&lp=en_fr&btnTrTxt=Translate}]

It does return an html page but it doesn't contain any translation. What did I miss thanks ?

Upvotes: 0

Views: 134

Answers (2)

Graham Chiu
Graham Chiu

Reputation: 4886

There are a lot of hidden variables which you haven't included ...

 <input type=hidden name="ei" value="UTF-8"> 
 <input type=hidden name=doit value="done"> 
 <input type=hidden name=fr value="bf-home"> 
 <input type=hidden name=intl value="1"> 
     <input type=hidden name=tt value="urltext" > 

Upvotes: 1

luminarious
luminarious

Reputation: 147

POST with Rebol works, so my guess is that the babelfish page has become more complicated in the time since the writing of the tutorial.

Upvotes: 0

Related Questions