Fishing with Rod Discussion Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: NFR - looking for C# guru  (Read 4796 times)

DragonSpeed

  • Old Timer
  • *****
  • Offline Offline
  • Posts: 2980
  • Less Computer Time - More fishing Time...yes YOU!
    • My Pictures
NFR - looking for C# guru
« on: January 30, 2006, 12:36:57 AM »

Anyone out there know anything about cookies? (Not the edible type) I'm trying to get the cookies that are sitting in the IE cache, and add them to a httpwebrequest.

Anyone?

Buckeye

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 180
Re: NFR - looking for C# guru
« Reply #1 on: January 30, 2006, 06:37:25 AM »

I am certainly no C # guru, but from what I can find I understand that instead of getting the cookies from HttpWebRequest, you should get the cookies from the HttpWebResponse instance returned by GetResponse()

See http://www.codeproject.com/csharp/httpwebrequest_response.asp

Hope that helps.

Cheers,
George
Logged

DragonSpeed

  • Old Timer
  • *****
  • Offline Offline
  • Posts: 2980
  • Less Computer Time - More fishing Time...yes YOU!
    • My Pictures
Re: NFR - looking for C# guru
« Reply #2 on: January 30, 2006, 07:30:04 AM »

But I need to send my cookies on my first request.  I HAVE my cookies on the system (i.e. the persistent cookie sitting in my IE cache), and I want to send them up on the REQUEST, otherwise the server which I am trying to talk to says "Not logged in", since it is expecting those cookies.

johnny

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 199
Re: NFR - looking for C# guru
« Reply #3 on: January 30, 2006, 08:51:52 AM »

I know a C+ guru.. I'll ask him for ya.. :)
Logged
Never let the truth get in the way of a perfectly good story...

johnny

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 199
Re: NFR - looking for C# guru
« Reply #4 on: January 30, 2006, 11:33:52 AM »

Sorry..  his response:

Sorry, that's too Windows-specfic. I'm a "language lawyer", more into the pure language aspects than the proprietary interfaces...and I especially eschew e-commerce/web-centric UIs. Sorry...

Logged
Never let the truth get in the way of a perfectly good story...

Rick

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 20
Re: NFR - looking for C# guru
« Reply #5 on: January 30, 2006, 01:16:59 PM »

But I need to send my cookies on my first request.  I HAVE my cookies on the system (i.e. the persistent cookie sitting in my IE cache), and I want to send them up on the REQUEST, otherwise the server which I am trying to talk to says "Not logged in", since it is expecting those cookies.




Cookies are handled server side and I have never heard of a client sending a cookie to the server?
Logged

DragonSpeed

  • Old Timer
  • *****
  • Offline Offline
  • Posts: 2980
  • Less Computer Time - More fishing Time...yes YOU!
    • My Pictures
Re: NFR - looking for C# guru
« Reply #6 on: January 30, 2006, 02:23:03 PM »

Sorry..  his response:

Sorry, that's too Windows-specfic. I'm a "language lawyer", more into the pure language aspects than the proprietary interfaces...and I especially eschew e-commerce/web-centric UIs. Sorry...


LOL.  Thanks anyway, and thanks for the chuckle.

DragonSpeed

  • Old Timer
  • *****
  • Offline Offline
  • Posts: 2980
  • Less Computer Time - More fishing Time...yes YOU!
    • My Pictures
Re: NFR - looking for C# guru
« Reply #7 on: January 30, 2006, 02:25:53 PM »

But I need to send my cookies on my first request.  I HAVE my cookies on the system (i.e. the persistent cookie sitting in my IE cache), and I want to send them up on the REQUEST, otherwise the server which I am trying to talk to says "Not logged in", since it is expecting those cookies.




Cookies are handled server side and I have never heard of a client sending a cookie to the server?

When IE hits a site it has cookies for, it just offers them up. If the server wants them, and asks for them, it gets them.  Otherwise a cookie based request would be multiround trips.

I've developped a work-around.

1) Hit the Login page with Post Data containing username/password
2) Take the cookie that it hands me.
3) Hit the page that I want, with the cookie that I had handed to me, and do my stuff

It means another round trip to the server but....

Reservoir Dog

  • Guest
Re: NFR - looking for C# guru
« Reply #8 on: January 30, 2006, 02:36:58 PM »

Friends dont let friends use Internet Exploder. Friends use Firefox :) http://www.mozilla.org
Logged

DragonSpeed

  • Old Timer
  • *****
  • Offline Offline
  • Posts: 2980
  • Less Computer Time - More fishing Time...yes YOU!
    • My Pictures
Re: NFR - looking for C# guru
« Reply #9 on: January 30, 2006, 03:45:06 PM »

Friends dont let friends use Internet Exploder. Friends use Firefox :) http://www.mozilla.org

Friends let their friends work within corporate standards  ::)  IE it is.

Rick

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 20
Re: NFR - looking for C# guru
« Reply #10 on: January 30, 2006, 06:49:20 PM »

There is always http://www.experts-exchange.com/ which is a great site
to ask tech related questions...
Logged

Rick

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 20
Re: NFR - looking for C# guru
« Reply #11 on: January 30, 2006, 06:52:36 PM »

Friends dont let friends use Internet Exploder. Friends use Firefox :) http://www.mozilla.org

I've heard good things about that browser, Google seems to promote it highly, I wonder if it is their product?
Logged

Reservoir Dog

  • Guest
Re: NFR - looking for C# guru
« Reply #12 on: January 30, 2006, 11:05:41 PM »

I've heard good things about that browser, Google seems to promote it highly, I wonder if it is their product?

No it's not a Google product, it was created by Mozilla, which was bought by Netscape (Netscape 7 is based on the firefox engine) Firefox unlike IE is an Open Source program (much like Linux) so instead of a few people busting bugs, there are 100's of millions of people busting bugs. Netscape was bought out by AOL about 2 years ago, however Unlike the AOL engine, they didn't mess with Firefox, they had an agreement, to not make changes to Firefox or Netscape. If they mess with the engine EVER, then Netscape & firefox reverts back to the original creators, along with 100 million dollars.
Logged