Article View: borland.public.cppbuilder.internet.web
Article #1003Re: Example With WebPostData
From: caleb
Date: Wed, 19 Oct 2005 14:51
Date: Wed, 19 Oct 2005 14:51
33 lines
2444 bytes
2444 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"caleb" <nospam@nospam.net> wrote in message >news:4353f728$1@newsgroups.borland.com... > >> It still navigates to the login page. The user is not logged in. > >That is likely. The "sid" value that the <form> appends to the URL appears >to be a dynamic value. Which means that you will have to first navigate to >"login.php" without a username/password, then grab the current SID, then >repost to login.php again with that value and the username/password. This >is exactly what happens when the user navigates to login.php and logs in >manually. Even when using the sid value it does not successfully post the data. When using the onbeforenavigate2 event to see the postdata when manually submitting the form, I noticed that the Headers were slightly different than if the form was posted with the function from the article. The text was slightly different and the manual post has an extra blank line in the headers: Headers from manual post using the onbeforenavigate2 event to see the postdata: Content-Type: application/x-www-form-urlencoded [extra line] Headers when using code from article: Content-Type: application/x-www-form-urlencodedrn --- I changed the article code to \r\n and it still navigated to the login page. In the newsgroup archives there is mention of adding "\\" but I am not sure what they meant (Message-ID: <41810b0b@newsgroups.borland.com>):
Technical Details
Message-ID:
<43565d65$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4353bb00$1@newsgroups.borland.com> <4353eac7$1@newsgroups.borland.com> <4353f728$1@newsgroups.borland.com> <435410ee@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,ca14d8698db3e7b8 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "caleb" <nospam@nospam.net> Sender: "caleb" <nospam@nospam.net> Reply-To: "caleb" <nospam@nospam.net> Subject: Re: Example With WebPostData Newsgroups: borland.public.cppbuilder.internet.web X-User-Info: 165.247.64.137 References: <4353bb00$1@newsgroups.borland.com> <4353eac7$1@newsgroups.borland.com> <4353f728$1@newsgroups.borland.com> <435410ee@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <43565d65$1@newsgroups.borland.com> Date: 19 Oct 2005 07:51:17 -0700 X-Trace: newsgroups.borland.com 1129733477 207.105.83.66 (19 Oct 2005 07:51:17 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail