Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / January 2004

Tip: Looking for answers? Try searching our database.

Application Center Test (ACT)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ramsin - 06 Jan 2004 20:52 GMT
Hi Group,

  I'm passing an address like www.domain.com/page1.aspx?e=eru23iu4,
then in response web server takes me to a new address like
www.domain.com/page2.aspx?user_id=3434 (this happening in a browser or
real world)
Using ACT, I request the first address
(www.domain.com/page1.aspx?e=eru23iu4) and it responses me 200 (=OK)
but the return-code should be 301 (Moved permanently) or 307(Temporary
Redirect) since a rediction or transfer is occured.
   I'm going to capture some information like user_id (from 2nd page)
which comes backs from the second page but what I get as response is
the first page address.
Any solution ?
Your help would be apprecaited greatly.

ramsin
Andr?s Naranjo[MSFT] - 07 Jan 2004 20:15 GMT
Ramsin,

I am not sure I understand your problem. Let me see if I understand this:

1. You have an ACT script which issues a request to a URL:
www.domain.com/page1.aspx?e=eru23iu4

2. This page somehow re-directs you to :
www.domain.com/page2.aspx?user_id=3434

3. You say that the response from the server is an HTTP 200 as oposed to a
302 redirect.  Can you check the web-server's logs to see what the server
replied with? Is the server replying with a 200 or a 302?

4. You are interested in grabbing the user ID from the address in step #2?

5. Did you record this script through ACT or did you write it manually?

6. Can you post your script here so I can look at it?

Does this answer your question?  Thank you for using Microsoft Newsgroups!

Andr?s Naranjo [MSFT]
Microsoft DS Communities Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only.
Ramsin Savra - 09 Jan 2004 02:39 GMT
Hi Andr?s,

   I appreciate your quick reply. I didn't know that you had answered it
till I found your note in "appclicationcenter.usage" user group. Once again
thanks. Long story short,  You got the point exactly and I didn't use wizard
or recording session. the scrip was manually, I was assuming that there was
something going on behind the server script which is a C# code and I hadn't
access to that part too. Anyway, finally we found out that there was a
restriction mechanism which didn't let to have the real return code. FYI, I
had looked at IIS log file there was 200 return value either.
However, if you don't mind I will be so glad to have your email to send you
the source code and since I've planned to work on ACT more for QA issues so
would be great to have your email and your suggestions in future.
Please know that my email is ramsinsavra@msn.com
However, please let me know how I can have session object in ACT ? since it
complains when I write :  Set Session = CreateObject("ACT.Session")
also how come can I be more go into details on ACT ? there is no any book
except one from Microsoft which talks kind of high level. Is there any
resource to dive into more low level issues or script programming to give me
more features ?

Thanks
Ramsin

> Ramsin,
>
[quoted text clipped - 23 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Please reply to newsgroups only.
Andr?s Naranjo[MSFT] - 12 Jan 2004 20:23 GMT
Your best resource for learning about ACT is the help documentation.

I have also heard good things about the following:
http://www.amazon.com/exec/obidos/tg/detail/-/1590590724/qid=1060702954/sr=2
-3/102-1308940-6677727?v=glance&s=books

and

http://www.amazon.com/exec/obidos/tg/detail/-/1861007558/qid=1063641593/sr=1
-2/ref=sr_1_2/102-1308940-6677727?v=glance&s=books

As for creating sessions the way you specified, I don't think that is
supposed to be possible. I thought only web servers created sessions, not
clients or client scripts...

If you have future questions you can always post them here, I try to look
through the newsgroups as time permits. Some times I am more busy than
others.  You could also open up support incidents with Microsoft Product
Support Services, but you will be charged for those unless you have a
support contract.

Does this answer your question?  Thank you for using Microsoft Newsgroups!

Andr?s Naranjo [MSFT]
Microsoft DS Communities Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only.
Andr?s Naranjo[MSFT] - 12 Jan 2004 20:47 GMT
In the Application Center newsgroups you  asked me about the session
information, much like you did in your last post, and after I told you the
server issues the session, not the client, you asked me how to capture the
server's session information.  I replied in that newsgroup and I am pasting
my answer below.  Try to keep the Application Center Test posts out of the
Application Center 2000 newsgroups as they are different and unrelated
products.:

Hi,

   I need to know how I would be able to capture Session information during
a script running under ACT.

Thanks

Session information, namely the session ID, is sent from the server as part
of the HTTP headers of the response it sends to the client.

You need to parse the response the client gets, to find the Session ID.

When you send a request in ACT to a web server, you do so in a form similar
to:
Set oResponse = oConnection.Send(oRequest)

the oResponse object, is an object which contains the response issued by
the web server, including the Body of the response (HTML
code)(oResponse.Body), the Content length (oResponse.ContentLength), the
HTTP response code (200 OK, 400, 500, etc;) (oResponse.ResultCode), and the
Headers (oResponse.Headers).

The headers are a collection of headers in the response. I recommend you
parse through these to look for your session ID.
To figure out exactly what the headers look like, you could parse the
oResponse.Headers object to see what the server is sending back, and then
altering your code to handle it.  A sample function of how to do this, is
in the help documentation, and I am pasting it here:

''''''''''''''''''''''''''''''''''''''''''''''''''
' Procedure to display the properties of each
' Header object in the Headers collection.
'
Sub ShowHeadersProperties(oResponse)
  Dim oHeader, oHeaders, lCount, strInfo

  Set oHeaders = oResponse.Headers

  strInfo = "-- Headers info --" & vbCrLf
  For Each oHeader In oHeaders
     strInfo = strInfo & oHeader.Name & ": " & oHeader.Value & vbCrLf
  Next

  Call Test.Trace(strInfo)
  Call Test.Trace("(Total: " & CStr(oHeaders.Count) & _
                 " header fields)")
End Sub

I am guessing you will eventually want to send the session ID back to the
server, which means you must place it in... yes, you guessed it, in the
header of the follow-up request you send to the server!

Does this answer your question?  Thank you for using Microsoft Newsgroups!

Andr?s Naranjo [MSFT]
Microsoft DS Communities Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only.

Does this answer your question?  Thank you for using Microsoft Newsgroups!

Andr?s Naranjo [MSFT]
Microsoft DS Communities Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.