Re: A problem with http request to a webobjects site

2012-04-26 Thread User

Thank you all! I got it!
I'll describe with pleasure the solution of this problem on request.
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: A problem with http request to a webobjects site

2012-04-26 Thread Paul D Yu
Why don't you update the WOCommunity site with a write up?

Sent from my iPad

On Apr 26, 2012, at 5:12 AM, User my...@inbox.ru wrote:

 Thank you all! I got it!
 I'll describe with pleasure the solution of this problem on request.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
 
 This email sent to p...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: A problem with http request to a webobjects site

2012-04-24 Thread User

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

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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: A problem with http request to a webobjects site

2012-04-24 Thread Pascal Robert

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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: A problem with http request to a webobjects site

2012-04-20 Thread User
My application is written not in WebObjects. I use php framework 
CodeIgniter.. How can I use WODirectAction?


19.04.2012 13:19, Jérémy DE ROYER [INGENCYS] написал:
Do you use WODirectAction ? If not, it might be a study point.

Jérémy

Le 19 avr. 2012 à 08:49, User a écrit :

Hi! There's a site on WebObjects with a registration and 
authorization. I write a code that will register automatically on that 
site(a code on another server, on my site). I want to realize this 
with a HTTP POST request (PHP).

On that WO-site everything is simple:
- Main page with an authorization form. (Link to register-form page 
below)
on start this page send back http-header asking browser to set these 
cookie:

1. wosid=4Q2VQfhC5r2Dcu27brmZH0;
2. woinst=-1;
3. JSESSIONID=6DE82EE80322335D4582FFE33C8F7128;
Then i press a link register and go to a register-form page.
my browser sends back those cookie: wosid, woinst and JSESSIONID.
I fill in a form. Press Register submit button. Page reloads and 
says me that i've just registered.

That's all.

A wrote a php code that sends a http GET request to the main page of 
that WO-site to get those cookie(wosid, woinst and JSESSIONID)
A save cookie and send it to a WO-site server, but in the http POST 
request and with required post data (to the url that pointed in 
action attribute of the form on the register-form page)


I expect that server will return me some success page but it returns
You backtracked too far.
The application backtracking limit of 30 has been exceeded.

What does it mean?

Can anyone help me with this? =) Any suggestions?
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net 



This email sent to jeremy.dero...@ingencys.net


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: A problem with http request to a webobjects site

2012-04-20 Thread Johann Werner
Hi Jérémy,

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


Am 20.04.2012 um 12:09 schrieb User:

 My application is written not in WebObjects. I use php framework 
 CodeIgniter.. How can I use WODirectAction?
 
 19.04.2012 13:19, Jérémy DE ROYER [INGENCYS] написал:
 Do you use WODirectAction ? If not, it might be a study point.
 
 Jérémy
 
 Le 19 avr. 2012 à 08:49, User a écrit :
 
 Hi! There's a site on WebObjects with a registration and authorization. I 
 write a code that will register automatically on that site(a code on another 
 server, on my site). I want to realize this with a HTTP POST request (PHP).
 On that WO-site everything is simple:
 - Main page with an authorization form. (Link to register-form page below)
 on start this page send back http-header asking browser to set these 
 cookie:
 1. wosid=4Q2VQfhC5r2Dcu27brmZH0;
 2. woinst=-1;
 3. JSESSIONID=6DE82EE80322335D4582FFE33C8F7128;
 Then i press a link register and go to a register-form page.
 my browser sends back those cookie: wosid, woinst and JSESSIONID.
 I fill in a form. Press Register submit button. Page reloads and says me 
 that i've just registered.
 That's all.
 
 A wrote a php code that sends a http GET request to the main page of that 
 WO-site to get those cookie(wosid, woinst and JSESSIONID)
 A save cookie and send it to a WO-site server, but in the http POST request 
 and with required post data (to the url that pointed in action attribute 
 of the form on the register-form page)
 
 I expect that server will return me some success page but it returns
 You backtracked too far.
 The application backtracking limit of 30 has been exceeded.
 
 What does it mean?
 
 Can anyone help me with this? =) Any suggestions?



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

A problem with http request to a webobjects site

2012-04-19 Thread User
Hi! There's a site on WebObjects with a registration and authorization. 
I write a code that will register automatically on that site(a code on 
another server, on my site). I want to realize this with a HTTP POST 
request (PHP).

On that WO-site everything is simple:
- Main page with an authorization form. (Link to register-form page below)
on start this page send back http-header asking browser to set these 
cookie:

1. wosid=4Q2VQfhC5r2Dcu27brmZH0;
2. woinst=-1;
3. JSESSIONID=6DE82EE80322335D4582FFE33C8F7128;
Then i press a link register and go to a register-form page.
my browser sends back those cookie: wosid, woinst and JSESSIONID.
I fill in a form. Press Register submit button. Page reloads and says 
me that i've just registered.

That's all.

A wrote a php code that sends a http GET request to the main page of 
that WO-site to get those cookie(wosid, woinst and JSESSIONID)
A save cookie and send it to a WO-site server, but in the http POST 
request and with required post data (to the url that pointed in action 
attribute of the form on the register-form page)


I expect that server will return me some success page but it returns
You backtracked too far.
The application backtracking limit of 30 has been exceeded.

What does it mean?

Can anyone help me with this? =) Any suggestions?
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: A problem with http request to a webobjects site

2012-04-19 Thread Jérémy DE ROYER [INGENCYS]
Do you use WODirectAction ? If not, it might be a study point.

Jérémy

Le 19 avr. 2012 à 08:49, User a écrit :

 Hi! There's a site on WebObjects with a registration and authorization. I 
 write a code that will register automatically on that site(a code on another 
 server, on my site). I want to realize this with a HTTP POST request (PHP).
 On that WO-site everything is simple:
 - Main page with an authorization form. (Link to register-form page below)
 on start this page send back http-header asking browser to set these cookie:
 1. wosid=4Q2VQfhC5r2Dcu27brmZH0;
 2. woinst=-1;
 3. JSESSIONID=6DE82EE80322335D4582FFE33C8F7128;
 Then i press a link register and go to a register-form page.
 my browser sends back those cookie: wosid, woinst and JSESSIONID.
 I fill in a form. Press Register submit button. Page reloads and says me 
 that i've just registered.
 That's all.
 
 A wrote a php code that sends a http GET request to the main page of that 
 WO-site to get those cookie(wosid, woinst and JSESSIONID)
 A save cookie and send it to a WO-site server, but in the http POST request 
 and with required post data (to the url that pointed in action attribute of 
 the form on the register-form page)
 
 I expect that server will return me some success page but it returns
 You backtracked too far.
 The application backtracking limit of 30 has been exceeded.
 
 What does it mean?
 
 Can anyone help me with this? =) Any suggestions?
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net
 
 This email sent to jeremy.dero...@ingencys.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com