473,513 Members | 3,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Post and cookies

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 =---
Nov 16 '05 #1
2 2331
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

Nov 16 '05 #2
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" <tr****@phizy-dot-com.no-spam.invalid> wrote in message
news:40******@127.0.0.1...
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

=---
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3380
by: TJO | last post by:
Can someone at MS please reply to this. I am trying to post data so a web form via ssl with the following code. I keep getting this error: "The underlying connection was closed: Could not establish secure channel for SSL/TLS" private void mainHttpCalls(string postData) { HttpWebRequest objRequest1 ; HttpWebRequest objRequest2 ;
7
29738
by: Eric | last post by:
I am certain the answer will be 'NO', but I wanted to ask anyway just incase I have missed something. Everyone knows that one pass data to a page in an anchor tag by using the GET Method: <a href="http://www.aaa.com/randompage.php?name=data"> What I am wondering is if there was a way to do the same thing, but use the POST Method...
4
3147
by: James Johnson | last post by:
Dear C#Dex, I am trying to automate a POST to a web page that clicks a button. I have been able to hit a target web page and run the web page. However, the button on the page does not click. I can set the target web page to change to a new URL when I hit it, and that works, but I cannot get the button to click based on my POST command. ...
5
2225
by: Tony Pino | last post by:
Hi, Lets say there's a web site with simple authentication. It asks you to type a uname/password into a couple text boxes, and then it gives you a cookie and you're logged in for 20 minutes or so. What I need to do is automate that. In other words, in my code behind, how can I generate a POST request (with username and password data) to...
2
6945
by: Luis Esteban Valencia Muñoz | last post by:
I'm working on a web scraping application that needs to log into a website before it can get the data to scrape. I've always been confused about how the HttpWebRequest and HttpWebResponse objects work together with cookies, and was hoping that someone here could clear it up for me! Here's the steps I need to accomplish: 1) Set two...
0
3860
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use tools like ieHTTPHeaders v1.6, and I perform a normal login (using the normal website), I see that the viewstate is...
1
2400
by: branden.hughes | last post by:
http://www.dcor.state.ga.us/GDC/OffenderQuery/jsp/OffQryForm.jsp?Institution=vDisclaimer=True Every time I try it just kicks back the same HTML you'd find from the link above rather than a page displaying a particular individuals records. I've tried some generic cookie code to no avail. Any ideas? I'm working to get a huge process...
0
12752
by: barrybevel | last post by:
Hi, I'm trying to login to the www.vodafone.ie website using HttpWebRequest. It works fine with IE/Firefox and the .NET Web Control too, just not with my code. I think it's a redirect 302 problem. I'm using this code in a ASP.NET 2.0 application just in case that matters, maybe someone knows a better way to do this?
1
2219
by: JohnathanKong | last post by:
Hello, I hope this is the right place to post, but anyways, here goes. I current have a forum, snitz, in place, but am having an IE specific problem. Basically what happens is, I have a page that drops a cookie which logs in the user. This all works fine, but once the cookie is dropped ALL post method data from forms become empty. Get works, and...
24
1590
by: cplxphil | last post by:
Hi, Does anyone know if it's possible to post to a page without using a form? For example, if I want to pass a variable to another page without using a cookie, is there a way to pass it using post? Thank you, Phil
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.