From: Andi Scharfstein Date: 2003-10-03T01:27:00+09:00 Subject: Re: http-access2 POSTing Hi, "NAKAMURA, Hiroshi" wrote in news:00dc01c388f6$8f5376d0$04e6a8c0@sarion.co.jp: >> (http://www.myskoda.de) > > I know nothing about this site but if the site use HTTP-Cookies, > > client.set_cookie_store("cookie.dat") > > before > >> After logging in [client.get('http://www.myskoda.de/index.html', >> {"callname" => "mylogin", "password" => "mypass"})] > > and > >> client.post('http://www.myskoda.de/emailsys/sms/sms.html', {"network" >> => "151", "number" => "12345678", "msg" => text}) > > might help. Thanks for your input. I toyed around with that a bit and found out the following: client.set_cookie_store("cookie.dat") before logging on allows me to authenticate at the server, making it a successful login. Leaving it out leads to an error page ("Could not log in, please turn on cookies"). As I had that line in the script before, that doesn't change anything. Sorry again I didn't mention it. I tried inserting this line before the "Send SMS" request, which changes the script's behaviour: The site now thinks that I have not logged on and prompts me to do so (the error page I talked about in my other post). So, I deleted it again. Then, I tried changing the client.get to client.post and vice versa. This proved more interesting: When trying to provide login data via client.post (i.e. client.post ('http://www.myskoda.de/index.html', >> {"callname" => "mylogin", "password" => "mypass"}), the server didn't accept the login anymore. That is, I got the same message as before ("Could not log in"). So, something must be wrong with the POST method I use to access the site. I also tried changing the other POST request (Send SMS) to a GET, but sadly, this didn't work... in both cases, all I get is a 200 OK and the site loads as if I hadn't posted any data at all (except the login data from the cookie, which obviously is still there). The errors and a successful login are both handled by a 302 redirect (which I don't have to follow, as I know the URLs I want to access). So, are there any ideas on how to do the POST request differently so it might work? -- Thx: Andi S.