Post and cookies

  • Thread starter Thread starter Trex005
  • Start date Start date
T

Trex005

okay, I am trying to make a c# Gui for PHPbb
I have allready finished all the scripts for readong the posts and
such, but I set them all to run as guest. Now in order to reply to
these posts I have to log in. to do this I try to POST to login.php
but I am having trouble figuring out how to read headers after using
post.
currently I have tried about 50 different "guesses"
I have tried using HttpWebRequest to post and then tred to use
(HttpWebResponse)HttpWReq.GetResponse(); but that seems Very wrong
I can't seem to figure out how to post with HttpWebResponse.
I am quite new to c# and would appriciate any help that you could give
me
 
let me simplify because I don't seem to be getting any responces...

I want to post to a URL and then get the responce back :) very
simple... I'm mostly interested in the cookies

TIA
 
Check out Response.QueryString. Not sure how to do it in C#, I'm primaraly
a VB.NET guy. Kinda funny I'm helping someone in a C# group out. Anyhew, I
do this all the time, and the URl looks like
http://localhost/Mypage.aspx?Test=Blah
Then I use Response.QuesryString("Test") which returns a string, in this
case it's Blah. Not too bad, although cookies are a more secure way to go.

HTH,
Sueffel

Trex005 said:
okay, I am trying to make a c# Gui for PHPbb
I have allready finished all the scripts for readong the posts and
such, but I set them all to run as guest. Now in order to reply to
these posts I have to log in. to do this I try to POST to login.php
but I am having trouble figuring out how to read headers after using
post.
currently I have tried about 50 different "guesses"
I have tried using HttpWebRequest to post and then tred to use
(HttpWebResponse)HttpWReq.GetResponse(); but that seems Very wrong
I can't seem to figure out how to post with HttpWebResponse.
I am quite new to c# and would appriciate any help that you could give
me



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 
Back
Top