Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Newbie: Trouble filling a form using "http-post.r"

From: gscottjones:mchsi at: 8-Jun-2002 16:57

From: "Matthew Kim"
<snip> > Well, I tried what you suggested, but it still doesn't seem to work. I > also tried using all the variables listed included <snip> > but that still didn't work. <snip>
Hi, Matthew, I was asleep at the wheel during your original posting, and I hope I haven't overlooked something critical in one of the follow-ups. Using Cybarite's info, you just need to add a few more details to do a proper post in REBOL. You will need to add the post request with by using 'read/custom and then 'reduce a block that contains the word 'POST and a block containing the info. The variable names will need an "=" symbol following the variable. There appeared to be a variable missing, SIZEBOXW, which is the count of the words in the message. Here is the new request (note that the return is assigned to 'page) (watch for wrapped lines, especially the first!!): page: read/custom reduce [ 'POST rejoin [ "msisdn=" "4165551212" "area=" "416" "num1=" "555" "num2=" "1212" "oldtext=" "testing" "text=" "testing" "SIZEBOX=" "7" "SIZEBOXW=" "1" "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=" "" "sm_pcs_text=" "Send+a+PCS+message" "sm_home_link=" "" "sm_home_text=" "home" ] ] I have no way to verify that this actually works. But hopefully the posting method is correct. You sure picked a hard one for an early project. If the method above is still not working, then there are potentially other things going on, including that the site monitors for the name of the browser, and may not recognize REBOL. To get the hang of using a post method in REBOL, I would suggest finding a much simpler form (like babelfish's) and be sure that you have it working well before tackling what I would consider a much more difficult form. Hope this helps some, and good luck. --Scott Jones