Re: A problem with http request to a webobjects site
Re: A problem with http request to a webobjects site
- Subject: Re: A problem with http request to a webobjects site
- From: Pascal Robert <email@hidden>
- Date: Tue, 24 Apr 2012 21:07:37 -0400
Le 2012-04-22 à 07:01, User a écrit :
> That WO application is external site and I have no access to it.
> I've analyzed HTTP requests and responses of my browser and external server with Firefox Add-on - Tamper Data.
> My browser always sends only one set of cookies(with the same values) wosid, woinst and JSESSIONID. And external server never asks to set another set of cookies.
>
> About the URL I send POST request to...
> This WO app uses frames. Each page(main page, page with the registration form) consists of two frames "header" and "content".
> URL of main page(is constant): /KursPlattform/WebObjects/KursPlattform.woa/wa/UAAuthDA/auth?par=G5n9SoCPUIqm93qsNXWNH45V0
> And URLs of two frames(header and content):
> /KursPlattform/WebObjects/KursPlattform.woa/wo/0.1
> /KursPlattform/WebObjects/KursPlattform.woa/wo/0.3
> These URLs change each time when i refresh the page...
>
> The situation with the registration page is the same:
> Registration page URL(it changes after refresh): /KursPlattform/WebObjects/KursPlattform.woa/wo/3.5
> And URLS of it's frames(they change too after refresh)
> /KursPlattform/WebObjects/KursPlattform.woa/wo/4.1
> /KursPlattform/WebObjects/KursPlattform.woa/wo/4.3
Those are statefuls URLs, the 4.x is the context, and you cannot rely of this because it will change depending of what you are doing. You can't easily deal with those… especially from PHP or other programming environment. You better ask the people who maintains the application (they are probably in this mailing list!) to give you a easier access (by direct actions or REST) to what you need.
> A form "action" URL at first is /KursPlattform/WebObjects/KursPlattform.woa/wo/6.3
> But it also changes after I refresh the page..
>
> I've found out the urls that server gives me after i visit site after cleaning my browser's cache, cookies etc..("first visit")
> I wrote a code to save the set of cookies that server gives me after the first request to the main page..
> I send all this in a post request, but see a "backtracking" error.
>
> Maybe WO application deletes the session after the first GET-request too soon, so that when i send second request(POST) server "don't remember" this set of cookies...?
> How WO applications usually stores it's new sessions? Is it possible to write a code that will act on that external server like a browser(i mean using one session for several requests and responses..)? Are there some common behaviours in the WO applications for this case?
>
> Eugen
>
> 20.04.2012 14:02, Johann Werner написал:
> >> is that WO application an external site or do you have access to it (meaning logfiles, code, …)?
> >> If you are getting the backtrack error then I would suppose that you are getting an old session instead of a new one.
> >> Apparently your access submits something that makes WO think you are on a different session and then does not find the requested state in its page cache.
> >> What does the URL you send your POST request to looks like? Is there a sessionID in the URL that could override the one in the cookie?
> >> Is there another woinst number in it so your request gets routed to a wrong instance?
> >>
> >> jw
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden