HighTechTalks DotNet Forums  

J# URLConnection does not allow setting cookies

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss J# URLConnection does not allow setting cookies in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Anna
 
Posts: n/a

Default J# URLConnection does not allow setting cookies - 08-22-2005 , 04:49 PM






Hi,

I cannot set cookie header with J# URLConnection class method
setRequestProperty("Cookie", "cookie_name=cookie_value").
Cookie header is empty as received by the server.

I cannot use System.Net.Cookie class since we have a single code base
for Java and J#.

Is it a known bug? Is it going to be fixed in the next release of J#?

Please help.

Anna


Reply With Quote
  #2  
Old   
George Birbilis [MVP J#] [9880]
 
Posts: n/a

Default Re: J# URLConnection does not allow setting cookies - 09-12-2005 , 03:33 PM






Quote:
I cannot set cookie header with J# URLConnection class method
setRequestProperty("Cookie", "cookie_name=cookie_value").
Cookie header is empty as received by the server.

I cannot use System.Net.Cookie class since we have a single code base
for Java and J#.
why don't you make your own interface/class to abstract that functionality
and under .NET do other thing that under Sun Java? Then your code will still
talk to the same abstraction (OK, still not exactly a single code base)

Quote:
Is it a known bug? Is it going to be fixed in the next release of J#?
I suggest you check the MSDN feedback center

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis (AT) kagi (DOT) com>
Microsoft Most Valuable Professional
MVP J# for 2004, 2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime (Delphi & ActiveX: VB, PowerPoint, .NET)
+ Plugs (InterProcess/Internet communication)
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.