Hello,
I realize this may not be a HttpClient question per-say, but i think
this group is the best to help me. If not maybe you can point me in
the correct direction.

I am trying to get some data from a page using HttpClient. To get to
the data i have to log in.
I am using httpLook as a tool to see exactly what is being sent so i
can duplicate it with HttpClient.

But i am having trouble getting authenticated. An i am not sure what i
am looking at with this trace and hopefully someone can explain it to
me.

so here is my post::
==================================================================
POST /REPSuite/login.page HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, application/pdf,
*/*
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Host: www.mydomain.com
Referer: https://www.mydomain.com/REPSuite/login.page
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 74
Content-Type: application/x-www-form-urlencoded
Cookie: JSESSIONID=00019dKeSOO38agTqxkYO1PyYyS:11em7rfkp; s_cc=true;
s_sq=mydomain%3D%2526pid%253Dlogin.page%2526pidt%253D1%2526oid%253Dhttps%25253A//www.youravon.com/REPSuite/static/images/buttons/login.jpg%2526ot%253DIMAGE%2526oi%253D118

ret_view=login&accountNumber=1234578&password=xxxxxx&login.x=19&login.y=9
==================================================================


i then see an expected 302

HTTP/1.1 302 Found
Date: Wed, 21 Jun 2006 01:12:09 GMT
Server: IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix)
Pragma: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Location: 
https://www.mydomain.com/REPSuite/home.page?appRes=com.avon.gi.rep.core.resman.vprov.ObjProvApplicationResource%401c7f8cb6
Content-Length: 0
Set-Cookie: domaincookie=9dKeSOO38agTqxkYO1PyYyS2006-06-20
21:02:20.342213; Path=/; Domain=mydomain.com
P3P: policyref="/w3c/p3p.xml",CP="NOI DSP COR CURa ADMa DEVa OUR BUS
UNI COM NAV CNT", policyref="/w3c/p3p.xml",CP="NOI DSP COR CURa ADMa
DEVa OUR BUS UNI COM NAV CNT"
Connection: close
Content-Type: text/plain
Content-Language: en-us

==================================================================

then i see a get to the location, and here is were i am confused.

This is a get, and i build a GetMethod and pass it the about Location.
But what i do not know and hope someone can tell me is what is the
data below. The 5 rows of data. Is this send in the get somehow?

Thanks for any help

Randy

GET 
/REPSuite/home.page?appRes=com.avon.gi.rep.core.resman.vprov.ObjProvApplicationResource%401c7f8cb6
HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, application/pdf,
*/*
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Host: www.mydomain.com
Referer: https://www.mydomain.com/REPSuite/login.page
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Cache-Control: no-cache
Connection: Keep-Alive

000000  72 65 74 5F 76 69 65 77  3D 6C 6F 67 69 6E 26 61  ret_view=login&a
000010  63 63 6F 75 6E 74 4E 75  6D 62 65 72 3D 39 36 37  ccountNumber=123
000020  37 36 39 31 37 26 70 61  73 73 77 6F 72 64 3D 67  45678&password=x
000030  6F 32 62 73 75 26 6C 6F  67 69 6E 2E 78 3D 31 39  xxxxx&login.x=19
000040  26 6C 6F 67 69 6E 2E 79  3D 39                    &login.y=9

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to