Application Center Usage - Pass a jscript,vbs query through request.send

This is Interesting: Free IT Magazines  
Home > Archive > Application Center Usage > April 2005 > Pass a jscript,vbs query through request.send





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Pass a jscript,vbs query through request.send
Brad howe

2005-02-28, 5:53 pm

Hi all,

I have been trying to write both VBS and JScripts with ACT
to pass a query. I know that
you can use request.querystring is jscript but i can't get
it to work in MSACT. Any ideas why.

Just an example below;

http://www.google.ca/search?hl=en&q=cch&meta=

If you attempt to pass this string it only resolves
http://www.google.ca/search. It completely forgets about
anything after the "?".

I have tried substituting the string with the ascii code
as chr(63) and nothing seems to work. If you have and code
snippets or ideas, it would be greatly appreciated.

Thanks.
Michael McHenry

2005-03-03, 5:49 pm

I'm not sure why this wouldn't work.

If you're using Test.SendRequest(), you might try using
Test.CreateRequest() to create a request object.

The request object has a property (EncodeQueryAsUTF8 Property) that
determines whether or not it encodes the query string. That would seem
to imply that it accepts a query string.

You could also try posting instead of getting and putting the
parameters in the request body.


Good luck. You've probably discovered that it's difficult to
impossible to get support for ACT. This forum primarily deals with
"Application Center". If anyone is using ACT, they are not saying much
about it on the web, and if MS is supporting it, I have no idea where.

It may be that using ACT is just not a good idea.

BTW, if you are testing ASP.Net code, I've started a library for
processing .Net postbacks in ACT.

Brad Howe

2005-03-04, 5:49 pm

Dim oRequest, oResponse, oConnection

Set oConnection = Test.CreateConnection
("192.139.242.201")
strPath = "/"
strServer = "192.139.242.201"
strQueryString = "?
cch_sform=corpcap&f=xhitlist&xhitlist_mh=1000000&xhitlist_
q=income+tax&xhitlist_x=Advanced&xhitlist_s=&xhitlist_hc=%
5BXML%5D%5Bkwic%2C10%5D&xhitlist_d=TaxWorks%28CORPCAP%284%
285%2C12%2C61%2C79%2C130%2C192%2C218%2C2
50%2C283%2C311%
2C362%2C415%29%29%
29&xhitlist_xsl=xhitlist.xsl&xhitlist_vpc=first&xhitlist_s
el=hit-context%3Btitle%3Btitle-path%3Bpath%3Blast-
modified%3Bcontent-type%3Bhome-title"
strRequestURL = "http://" + strServer + strPath +
strQueryString

If (oConnection Is Nothing) Then
Test.Trace("Error: Unable to create connection.")
Else
Test.Trace("Sending request " + strRequestURL)
set oResponse = Test.SendRequest(strRequestURL)
oConnection.Close
End If

This is an example of what i am trying to do, i should
have posted before. I hope you can give me a hand.

>-----Original Message-----
>I'm not sure why this wouldn't work.
>
>If you're using Test.SendRequest(), you might try using
>Test.CreateRequest() to create a request object.
>
>The request object has a property (EncodeQueryAsUTF8

Property) that
>determines whether or not it encodes the query string.

That would seem
>to imply that it accepts a query string.
>
>You could also try posting instead of getting and

putting the
>parameters in the request body.
>
>
>Good luck. You've probably discovered that it's

difficult to
>impossible to get support for ACT. This forum primarily

deals with
>"Application Center". If anyone is using ACT, they are

not saying much
>about it on the web, and if MS is supporting it, I have

no idea where.
>
>It may be that using ACT is just not a good idea.
>
>BTW, if you are testing ASP.Net code, I've started a

library for
>processing .Net postbacks in ACT.
>
>.
>

Jess Martyn

2005-04-16, 7:46 am

Hello,

Recently, http://extremedesigners.5u.com - A website about web designing -
has been launched. I would like you to take a look at it and pass your
suggestions - complements - about it.

- Regards,
Extreme Designing Team.

"Brad howe" <bahowe@cch.ca> wrote in message
news:27e701c51dae$c1bb4dc0$a601280a@phx.gbl...
> Hi all,
>
> I have been trying to write both VBS and JScripts with ACT
> to pass a query. I know that
> you can use request.querystring is jscript but i can't get
> it to work in MSACT. Any ideas why.
>
> Just an example below;
>
> http://www.google.ca/search?hl=en&q=cch&meta=
>
> If you attempt to pass this string it only resolves
> http://www.google.ca/search. It completely forgets about
> anything after the "?".
>
> I have tried substituting the string with the ascii code
> as chr(63) and nothing seems to work. If you have and code
> snippets or ideas, it would be greatly appreciated.
>
> Thanks.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com