Post and cookies


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
 
Ad

Advertisements

T

Trex005

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
 
Ad

Advertisements

S

Sueffel

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
=---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

HttpWebRequest doesn't receive cookie on POST 0
Cookies 1
Cookies 0
Cookies 4
cookie 4
cookies 2
Newbie Cookie Question - Cookie Not Saved 3
c# and cookies 6

Top