get-url question
Posted: Mon Nov 21, 2005 8:52 pm
newbie in NewLisp here...greetings to NewLisp creator and community...
I have a question. I'm trying to create (my first more or less serious) newlisp script that should go to password protected page, login there, and fetch some information from the next page after login... I have created similar scripts in perl in the past, and now trying to do the same in newlisp.... and got some problems...
Login page sets cookie that need to be transferred to next page (along with some other info passed in the page body). However, when I try to use get-url (or post-url - doesn't matter in this case), I can read only either page header (with cookie data) or body. I need to get both parts of the request to be able to read cookie AND other variables stored inside HTML/form code. Is it possible?
thanks,
Andy
I have a question. I'm trying to create (my first more or less serious) newlisp script that should go to password protected page, login there, and fetch some information from the next page after login... I have created similar scripts in perl in the past, and now trying to do the same in newlisp.... and got some problems...
Login page sets cookie that need to be transferred to next page (along with some other info passed in the page body). However, when I try to use get-url (or post-url - doesn't matter in this case), I can read only either page header (with cookie data) or body. I need to get both parts of the request to be able to read cookie AND other variables stored inside HTML/form code. Is it possible?
thanks,
Andy