iSeriesCodePoet
Programmer
Hello all,
I am taking a HUGE bite into java by doing this (still relatively new). I am looking for some more direction. We have this web application that we want to interact with from another program. We are asking the vendor for a list of APIs, but are progressing with reverse-engineering the process to see if it will work.
I have been playing with the HttpURLConnection class to log-in and interact with a web application. Well, we have come to a problem. It seems for every URL change we have to create a new connection, so we loose any session information. (That is my thoery anyway). What we need to do is log in via a form, then grab a new page to retrive a variable and submit the form on the page to add the information. My problem is keeping the log in information, I keep on getting an invalid user error on the second page.
Do you have any ideas? I don't see anything in the API docs. I will be still googling, but I am hoping someone can point me in the right direction.
Thanks for any suggestions, iSeriesCodePoet
IBM iSeries (AS/400) Programmer
I am taking a HUGE bite into java by doing this (still relatively new). I am looking for some more direction. We have this web application that we want to interact with from another program. We are asking the vendor for a list of APIs, but are progressing with reverse-engineering the process to see if it will work.
I have been playing with the HttpURLConnection class to log-in and interact with a web application. Well, we have come to a problem. It seems for every URL change we have to create a new connection, so we loose any session information. (That is my thoery anyway). What we need to do is log in via a form, then grab a new page to retrive a variable and submit the form on the page to add the information. My problem is keeping the log in information, I keep on getting an invalid user error on the second page.
Do you have any ideas? I don't see anything in the API docs. I will be still googling, but I am hoping someone can point me in the right direction.
Thanks for any suggestions, iSeriesCodePoet
IBM iSeries (AS/400) Programmer