[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] http timeout and content checking
- To: "Gary Ciampa" <Gary.Ciampa (at) sas.com>, hobbit (at) hswn.dk
- Subject: Re: [hobbit] http timeout and content checking
- From: "Gary Baluha" <gumby3203 (at) gmail.com>
- Date: Fri, 30 May 2008 13:41:51 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=+KDMUFUUX67QCXvIupMpOWUTa+U26Uc2vBGuSgzerto=; b=A2A94aavrmz7+KhTDa7+HI8DDJW/Jre+N+BBznOWNVDhcqCTItP0o5u6IXnqc9z8nltyzf1l80I1r9X6Y79p7XjrohcfyvJ09WuCCo7MxA5pZjc9mF2dnqLRX+By/8MQcBNTd03tqbw1hwJ1oesBu/xt6tNkZLe38xQ2q1jeh9U=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Z9Xcz8zi1lI5PJlkwsiMzpP8Qg3CK1OUTytj1P3PmOUfUvd8R73iOezE80LjEFRzmVFMWU1eFF5Mj9+unQbL+lOqY0zDfRUhrT5QmjkLIfvReTVVZA8vSfXXaRFdMDGE+XbfNzvMrVP1sUF3BTbuXu0CO0WpaNd082wV3A3rnOg=
- References: <29f517690712210824n4f4e958aw4247e023ed4b096f (at) mail.gmail.com> <29f517690712242041k7f16fc8ar9324d002872b3332 (at) mail.gmail.com> <29f517690801021123y61863dc6t5612d3853b0ee88 (at) mail.gmail.com> <20080103111146.GA3753 (at) hswn.dk> <29f517690801030656n3d14c65em6f3d77f0f42b62b8 (at) mail.gmail.com> <304E9E55F6A4BE4B910C2437D4D1B4960B1EBE5E18 (at) MERCMBX14.na.sas.com>
I'm not entirely sure I know what you mean by "clickaction", but the URLPlus
script I wrote handles the HTTP POST action. The definition would look like
this:
bctlax04-test;post;;http://bctlax04.unx.sas.com:8080/SASPortal/<http://bctlax04.unx.sas.com:8080/SASPortal/;username_field=>
;username_field=<http://bctlax04.unx.sas.com:8080/SASLogon/index.jsp?username_field=><userid>&password_field=<password>&_sasapp=Information+Delivery+Portal+4.2;<search
string>
The difference with this compared to Hobbit is that I use 'curl' to pass all
the data to the web page. This also has the added benefit that you can
essentially copy/paste the section of my script that has the curl command on
the command line, and see exactly what is happening.
One thing to keep in mind is if the .jsp page does any sort of redirect, it
won't work as you expect. My URLPlus script will handle one page redirect
if you add the "r" flag (e.g. "...post;r;..." from my example above).
On Thu, May 29, 2008 at 5:50 PM, Gary Ciampa <Gary.Ciampa (at) sas.com> wrote:
> Gary,
>
> Question related to this hobbit posting…were you are to get a clickaction
> working with the hobbit http network test?
>
> For example, I have a .jsp that is expecting a userid/password and a post
> action. I can not seem to drive the post action with hobbit; It appears I am
> getting to the main .jsp page. For example, here's my http defintion:
>
> http://bctlax04.unx.sas.com:8080/SASLogon/index.jsp?username_field=
> <userid>&password_field=<password>&_sasapp=Information+Delivery+Portal+4.2&
>
> And, here the entry in the bb-hosts file:
>
> post;http://bctlax04.unx.sas.com:8080/SASPortal/;username_field=
> <userid>&password_field=<password>;SAS[[:space:]]Information;
>
>
> Thanks
>
>
>
> *From:* Gary Baluha [mailto:gumby3203 (at) gmail.com]
> *Sent:* Thursday, January 03, 2008 9:56 AM
> *To:* hobbit (at) hswn.dk
> *Subject:* Re: [hobbit] http timeout and content checking
>
>
>
> On Jan 3, 2008 6:11 AM, Henrik Stoerner <henrik (at) hswn.dk> wrote:
>
> On Wed, Jan 02, 2008 at 02:23:42PM -0500, Gary Baluha wrote:
> > Actually, it looks like it's not so much an issue with the max length for
> > the URL, as it is for *any* line in bb-hosts. I started writing an
> > extension script to do the content checking, and even that is getting the
> > URL truncated. The problem appears that everything past 464 characters
> from
> > the "#" in the bb-hosts file for any host is discarded.
>
> It shouldn't do that, and I cannot trigger this with a simple test.
> Could you send me (off-list) the bb-hosts file you're using ?
>
>
> Just an update for the list...
>
> With the debugging tool Henrik mentioned, the URL that is apparently
> getting truncated everywhere else is NOT truncated with the tool. I'm
> currently writing a URL content check extension script to both get around
> the truncation issue I'm having, as well as adding some content check
> features Hobbit doesn't have out-of-the-box, so ultimately it's not a big
> deal for me. However, I will work with Henrik to see if we can figure out
> where this issue is coming from.
>