Hi Stefan! I would rather use the rebol proxy server (proxy.r) from rebol.com library to capture all the outgoing data. It is a very useful script. Give it a try. Joshy ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 08 June, 2000 3:44 PM Subject: [REBOL] Getting an URL from a form Re:(2) > Hi, > uhm, I'll try to explain what I want to do. > > The site I'm looking at is a company that sell DVD movies. They have a > function to search for movies. I want to be able to make that search, not by > going to their homepage and typing in the form below, but just to enter an > URL (or send an URL from a Rebol script actually), and then parse the > returned page to get the info I want. The problem is that I don't know the > syntax of the URL being sent (if it's possible to use an URL). IE. one of > their links show something like: > > http://www.dvdshop.com/dvdsearch.asp?category=Horror > > if I press that link I get a list of all the horror movies. However, when it > comes to the search form, I'm unable to figure out what the URL should look > like. I've tried for example: > > http://www.dvdshop.com/dvdsearch.asp?title=Scream > > However, this isn't working, and I'd like to know what the info being sent > to their script look like, so I can reproduce it in my Rebol script. > > As I see it, there's only thing I can do. Learn what all those ? = & etc. > mean in a form posted URL and use trial and error... Or if I can capture the > info sent from the form somehow to read and be able to reproduce it from a > script. > > file://Regards Stefan Falk > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: den 7 juni 2000 20:03 > To: [EMAIL PROTECTED] > Subject: [REBOL] Getting an URL from a form Re: > > > Hey Stefan, > I dont quite understand what your trying to do, but I will try to give you > some > information you may be able to use anyways. > > As you should already know HTTP servers take information from forms and pass > it > to a CGI program using POST or GET. The GET request can pass data via URL > encoding such as "www.foobar.com/test.cgi?test=on". > > With POST, your data is sent additionally, not as part of a URL. This > prevents > your data from being viewed or entered as a URL, and as I understand was > inpart > the reason they came up with POST. > > Hope I helped, > --Ryan > > > [EMAIL PROTECTED] wrote: > > > Hi list, > > this might not be Rebol related directly, but since I intend to use the > info > > for a rebol script I guess it's ok. Anyways, here we go. > > > > There's a page with a search form, and I'd like to know what the POSTed > URL > > look like. The source goes something like this: > > > > <FORM ACTION="search.asp" method=post target="rightframe" NAME=frmSearch> > > <TD width=15 height=1></TD> > > <TD><INPUT TYPE="text" SIZE=11 NAME=word></TD> > > <TR> > > <TD></TD><TD><INPUT TYPE="radio" NAME="search" > > VALUE="actor" CHECKED> > > <IMG SRC="Actor.gif"></TD> > > </TR> > > <TD></TD><TD><INPUT TYPE="radio" NAME="search" > > VALUE="title"> > > <IMG SRC="title.gif"><INPUT TYPE=image > > SRC="search.gif" BORDER=0 ALT="Search"></TD> > > </FORM> > > > > Of course, I tried to (naive as I am), to post an url that has the form > data > > like this: http://blaaah.com/search.asp?title=blaaah > > > > but this isn't the right one. Is there any way I can instead of performing > > the search just see the url? > > > > Any info appreciated > > > > file://Regards Stefan >