On Tue, 1 Jul 2003, Scoop wrote:

> OK, I am done beating my head against the wall.  Here is the site URL:
>
> http://www.hcso.tampa.fl.us/pub/default.asp?Category=Online&Service=SNAME01
>
> The page that is displayed requires input...I want to put in the date
> using option 3 on the page (Booking date).  For example if you put in
> "051703" (without the quotes) in the "Inquire by Booking Date" the next
> web page would display a list of every individual "booked" on May 17,
> 2003.
>
> The problem is that I cannot figure out how to get the date to post on the
> .site file.  Ideally, I could use the computer date to automatically scoop
> the entire URL posted above.
>
[pakcets deleted]

        Okay, I don't know how to read packets, but the form uses a "POST"
method, and as far as I can tell, Sitescooper can't handle them.  Luckily,
you can kludge a fix by trying to get the page as a GET form would.  For
instance try:

http://www.hcso.tampa.fl.us/pub/default.asp?/Online/dailybook3?report=D&Date=051603

        This will get the detailed bookings for 5/16/03.  Try this is a
site file and see if it works.  It might have a problem with the
session-id cookie.

        Now, as for changing the dates, you'll have to use the URLProcess
parameter to insert the date.  I haven't used that so I don't know when or
if it gets processed for the main URL of the site, and I don't know Perl,
so I don't know what the exact form of the date command should be.  But in
pseudocode, I imagine it'll be something like

// First set URL to
http://www.hcso.tampa.fl.us/pub/default.asp?/Online/dailybook3?report=D&Date=

$_ = $_+date("MDY");   // get today's date in mmddyy format and concat it
to
the end of the URL

        Keep in mind URLProcess is called for every URL, so if there are
others in the site, you might have trouble.  I might have the string
concatenation command wrong.  I'm assuming it's a plus, and there's a lot
of type stuff going on I'm not sure I have correct.  But try it.

        If you still can't get it to work, tell me, and I'll give it a
shot.  (I want to learn Perl to fix the caching issues, but I can't seem
to get the time.)

--Anthony

-------------------------------------------------------------------
"Why does everyone always assume I know nothing about women?!  I mean,
apart from the fact that they don't call here and I never go on dates."
-- Rob Wilco, "Get Fuzzy"



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Sitescooper-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sitescooper-talk

Reply via email to