Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Authenticating to a site throught sockets (no https)

Houssam Haitof
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to connect to a web site made with JSP's as to retrieve some news, however I need to login first (no https, it's a simple post to a jsp). I coded a proxy so I can monitor what is exchanged exactly between my browser and the server as to incorporate this information in the sockets to connect from my application.
Here's what my browser sends:
-- Input Begin --
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/, application/, application/msword, application/x-shockwave-flash, */*
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Content-Length: 43
Pragma: no-cache

-- Input End --
And this is what I ger as reply:
-- Reply Begin --
HTTP/1.1 302 Moved Temporarily
Server: "Meditel Server Web"
Date: Sat, 27 Mar 2004 22:30:26 GMT
Content-length: 2
Content-type: text/html;charset=ISO-8859-1
Location: /err.jsp?t=1java.lang.NullPointerException
Connection: close

-- Reply End --
I tried this with another site that uses ASP's and Im not getting anything as reply also.
Did I miss anything?
I'll really apreciate your help. Thanks in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic