[Http Client] - Correct Cookie Handling?

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

[Http Client] - Correct Cookie Handling?

Postby mastix » Sun Sep 20, 2009 10:18 am

Hi guys,

currently I'm developing an app that logs into a website using form based auth. Before I implemented that, I was using the HttpUrlConnection, but due that fact that my software didn't work in 2G networks I've changed my implementation to use the internal http client.

Does anyone of you know about an OpenSource App that does the same that I want? Like logging into a website (getting and setting Cookies) and so on? If yes, I could have a look at that. I mean the thing is... I need to find out whether the login worked or not.

Or does anyone know how it works correctly? Maybe some of you guys have already implemented something like that?

This is my current implementation that does not work:

http://code.google.com/p/web2sms4androi ... ndler.java

In the httpHandler() I set the cookies as member variable (setCookiesFromHeader() and also put them into the header if they exist (prepareConnection).

It would be really great if someone could help me. Really would like to release the version of my app, since a lot more things have changed. And this issue keeps me stuck... :(

Thank you very much in advance, guys.

Sascha
mastix
Junior Developer
Junior Developer
 
Posts: 13
Joined: Sun Sep 20, 2009 9:57 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 2 guests