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

[REBOL] Re: HTTP Post with dynamic values

From: tomc:darkwing:uoregon at: 12-Apr-2004 14:47

On Mon, 12 Apr 2004, Marc Stein wrote:
> This is the first time that I've used Rebol and I am having a problem with > what is probably a simple syntax issue. I need to post form variables to a > page and read the resulting page back into a variable for further > processing. The form variables contain dynamic elements. I see how I can > use rejoin to combine the dynamic elements into the string but I don't know > how to then pass that resultant string to read/custom. > > The command that I need to execute is: > > read/custom http://www.example.com/GCA00P00/WIQ1/WINQ120[ > post > "M12_SEL_DINI=89T4810&K01=WINQ120&K02=89T4810&K03=&K04=&K05=0&K06=&DFH_STATE > _TOKEN=abokyfjg&DFH_MAP_STATE_TOKEN="
write to-file join var-X ".txt" read/custom url ['POST rejoin [ "M12_SEL_DINI=" var-1 "&K01=WINQ120&K02=89T4810&K03=" var-3 "bla bla" ]] note the tick before post ... or use "POST" in quotes