Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / September 2005

Tip: Looking for answers? Try searching our database.

J# URLConnection does not allow setting cookies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anna - 22 Aug 2005 22:49 GMT
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
George Birbilis [MVP J#] [9880] - 12 Sep 2005 21:33 GMT
> 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)

> 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@kagi.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
........................................................................

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.