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"
]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Cybarite
Sent: Friday, June 07, 2002 10:24 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Newbie: Trouble filling a form using "http-post.r"
Matthew,
If you take a copy of the data entry source page, you can edit it and
change
it from POST to GET
in the line containing <FORM METHOD=POST ACTION="......."
save this editted html file on your computer, then open it with your
browser, enter some data and hit the submit button.
A failed message will be displayed by the server but in the URL you
should
be able to see what was sent.
When I did this I got back this
http://216.129.53.44:8080/cgi-bin/send_sm_rogers.new?
msisdn=4165551212
&area=416&num1=555&num2=1212
&oldtext=This+is+a+test+to+see+w+hat+is+posted.
&text=This+is+a+test+to+see+w+hat+is+posted.
&SIZEBOX=38
&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
maybe you need to submit SIZEBOX or msisdn which looks like it is a copy
of
the phone number.
Give it a try.
----- Original Message -----
From: "Matthew Kim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 7:15 PM
Subject: [REBOL] Re: Newbie: Trouble filling a form using "http-post.r"
> I tried this, but it still doesn't seem to work. Perhaps its my lack
of
> familiarity with HTTP. Could someone help me out please? It looks
> relatively simple...
>
> Are "area" "num1" "num2" and "text" the only variables that need to be
> defined?
>
> Thanks in advance,
> Matt
>
> >
> > Error: HTTP/1.1 405 Method Not Allowed
> >
> > tmp: http-post-form
> > http://www.rogers.com/english/wireless/sendpcs.html
>
> > reduce [
> > "area" "416"
> > "num1" "555"
> > "num2" "5555"
> > "text" "testing"
> > ]
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.