Cookie version and HTTP Protocol

What is the significane of version number obtained from javax.servlet.http.Cookie.getVersion().
Can someone discuss about it?
Can a Server implementing HTTP 1.0 or HTTP1.1 set cookie with version 0 or 1. How does the protocol version matters for cookie version.
Also in the HTTP Header, 'connection=keep-alive' does it mean that connection will be http connection will be kept alive forever? When does the connection close? Any useful informationt/links is greatly appreciated.
Btw, I started reading : http://www.ietf.org/rfc/rfc2109 for cookie/state management. and http://www.faqs.org/rfcs/rfc2068.html for HTTP protocol.
But in the meantime, enlightened souls...help me understand HTTP protocol and cookie relateion and how thier version and attributes affect a connection.
Kumar.

You are right, I don't want read up RFC's unless I get paid for those hours ;).
I want to know more about HTTP1.1 's header attribute 'Connection'.
When the value is 'Keep-Alive', I understand that connection is kept open for subsequent requests (this differs from HTTP 1.0 behaviour), but I want to know when it will get closed?
Another question is in Cookie's getMaxAge it returned -1, i.e persistent I guess it says write to file system. If then, when does it get deleted? How can I get the cookie's expiration time?
Kumar.

Similar Messages

  • Where and how can I know which version of http protocol that flash player used?

    If flash player uses web brower's http protocol?

    Is the EOB a PDF document?
    Firefox updates every 6 weeks and the current version is 31.0. Rolling back almost 6 months is not recommended for security reasons. If that's their best answer, I suggest we either figure out a workaround for getting the document, or you just use a different browser for their site.

  • Adaptive Web Services and HTTPS protocol

    Hello,
    We have a webdynpro application using adaptive webservices to consume a web service provided by external apache tomcat server.
    Using http protocol, everything works fine. But when we want to setup the destination using https protocol (e.g. https://tomcat.server:7443/app/inspection.wsil), we got
    following webdynpro exception:
    [code]
       java.io.IOException: Unable to open connection to proxy "tomcat.server:7443. opening proxy tunnel [failed][Socket output stream shutdown by peer.].
        at at com.tssap.dtr.client.lib.protocol.Connection.openSocket(Connection.java:2117)
        at at com.tssap.dtr.client.lib.protocol.Connection.open(Connection.java:1380)
        at at com.tssap.dtr.client.lib.protocol.Connection.sendInternal(Connection.java:1534)
        at at com.tssap.dtr.client.lib.protocol.Connection.send(Connection.java:1427)
        at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ... 50 more
    [/code]
    Debug messages in defaulttrace.trc just before the exception (location com.tssap.dtr.client.lib.protocol.Connection):
    [code]
    connection created [url=]#1#https://tomcat.server:7443/app/inspection.wsil/
    SSL handshake [succeeded][time=0ms]
    CONNECT tomcat.server:7443 HTTP/1.1
    Host: #2#tomcat.server#:7443
    Content-Length: 0
    User-Agent: SAP HTTP CLIENT/6.40
    Cookie: $Version=1;MYSAPSSO2=...
    [/code]
    It seems that it wants to open some proxy tunnel connection, but we are not using any proxy server in the communication.
    Do you see any solutions?
    Thanks,
    Samuel

    Hi Samuel,
              I guess its using proxy to access the tomcat server.Please add your
    tomcat server in the exclude list of WS Global setting in the Netweaver administrator if you dont want to use proxy.It will work fine.
    Thanks and Regards
    Ashis

  • Error in editing the passwords and HTTPS Protocol

    Hello!
    After I success install the uPerform Server, then I have shut down the server.
    The next day, I started to configure the server and find out that there has an error in editing the uPerformSystem and Solution Manager passwords. It pops up an error(401) and said" Error processing form. The remote server return an error: (401) Unauthorized".
    Also, I cannot configure the HTTPS Protocol. There has an error when I run  AuthenicationWizard and the error log was below:
    <Log>
    - <Entry Type="Trace" Id="b5969d99-c785-4e27-8b83-4e3280bcc65a">
      <Date>7/14/2011 7:13:04 PM</Date>
      <TraceType>Always</TraceType>
      <ThreadID>5</ThreadID>
      <RoutineNamespace>AuthenticationWizard.Process.stopServices()</RoutineNamespace>
    - <Message>
    - <![CDATA[ Stopping Services
      ]]>
      </Message>
      </Entry>
    - <Entry Type="Trace" Id="ce10e70d-9ecf-4921-a545-6b5db49d619e">
      <Date>7/14/2011 7:13:34 PM</Date>
      <TraceType>Always</TraceType>
      <ThreadID>5</ThreadID>
      <RoutineNamespace>AuthenticationWizard.Process.stopServices()</RoutineNamespace>
    - <Message>
    - <![CDATA[ End Stopping Services
      ]]>
      </Message>
      </Entry>
    - <Entry Type="Error" Id="a4765b76-002b-44f6-8235-76fade618e50">
      <Date>7/14/2011 7:13:55 PM</Date>
      <ThreadID>9</ThreadID>
      <ErrorCode>24-01-014</ErrorCode>
      <RoutineNamespace>RWD.uPerform.CMS.Vignette.VerifyLicense</RoutineNamespace>
      <FriendlyMessage>An error occurred while verifying license.</FriendlyMessage>
      <Message>Length cannot be less than zero. Parameter name: length</Message>
      <StackTrace>at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at System.String.Substring(Int32 startIndex, Int32 length) at RWD.uPerform.CMS.Vignette.VerifyLicense() at RWD.uPerform.WindowsService.QueueMonitor.VerifyLicense()</StackTrace>
      <Parameters />
      </Entry>
    - <Entry Type="Trace" Id="bbce281a-d3bb-4e49-9482-2dc8a03b52d7">
      <Date>7/14/2011 7:30:42 PM</Date>
      <TraceType>Always</TraceType>
      <ThreadID>6</ThreadID>
      <RoutineNamespace>AuthenticationWizard.Process.stopServices()</RoutineNamespace>
    - <Message>
    - <![CDATA[ Stopping Services
      ]]>
      </Message>
    Can anyone help me to solve the problems?
    Best Reagrds,
    Vivian

    Hi Vivian,
    With reference to this issue, can you please try the following steps on
    the application server in order to try and resolve this:
    1. Please open a command prompt and navigate to
    C:\Windows\Microsoft.NET\Framework\v2.0.50727\
    2. Run the following command: aspnet_regiis -iru
    3. Run the following command: aspnet_regiis -ga aspnet
    4. Open IIS.
    5. Expand Websites.
    6. Right-click on the uPerform Collaboration website and select
    properties.
    7. Click on the ASP.NET tab.
    8. Ensure the 2.0.50727 is selected in the ASP.NET version drop-down
    list.
    9. Select the Web Service Extensions folder.
    10. Ensure the ASP.NET v.2.0.50727 is set to Allowed.
    11. Restart IIS.
    12. Attempt to run the configuration page once more.
    13. Result?
    Also, have you tried restarting the server?
    Hope this helps,
    Kind Regards,
    Matthew

  • How do I move bookmarks, cookies, history and settings from an old Firefox version to my new one

    I have the previous version of my Firefox from an old computer now located on my C drive. I would like to move the bookmarks, cookies, history and settings to my new Firefox (it is an upgraded version on my new computer). When I click on the File drop down, the import section can not be opened because it is not active. I have dozens of bookmarks that I would like to have loaded in my new Firefox application. I would also like to have my passwords moved to the new Foxfire application. How do I get that to happen?

    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • IWeb protocol support for anything OTHER than http and https

    I am extremely disappointed in iWeb. It doesn't even seem to be able to do very simple things.
    All I want to do is to create HTML links to external pages with protocols other than "http" and "https" and it always prepends "http" to the beginning of the URL. This is really really really annoying.
    Apple I hope you are paying attention. iWeb is poorly designed. You are trying to anticipate what end users want...this is a development practice right from the Microsoft Windows Developer book. I sure how the next update to iWeb works properly. I'm so upset about all this...I can't publish podcasts to the web because of all the foolishness with how you handle that, and the confusing directory name issues.
    My podcast URL looks like this:
    http://itpc://www.mysite.com/podcast/News/rss.xml
    I tried (unsuccesfully) to manually create the podcast since the automated version created this:
    itpc://www.bradyconsult.com/podcast/podcast/News/rss.xml
    I'm sure I could fiddle with iWEb and get this to work, but why should I? I've already fiddled with it and simple changes to my site structure totally screw this up. Not to mention, that when it did work, it didn' t even post all my podcasts!!! It skipped the first one and the last one.
    And, for those wondering, i'm not technically clueless. I have a podcast working just fine on two other sites. The appeal to iLife with iWeb and the new podcast feature of GarageBand was to bring all this together in one easy to use, nice package. But it's not nice. Garageband's update is awesome! But iWeb and it's attempts to work with the other iApps is gruesome.
    I expect this garbage from Microsoft...not Apple.
    Can anyone recommend a workaround (and yes, I understand I can manually edit HTML...but I was hoping for a workaround within iWeb) to create html links with support for protocols (aside from http and https) ??
    It's bad enough I have to publish to a folder and then FTP to my site since apple makes that exceedingly difficult to do (I'm sure to increase .mac sales) but all this other foolishness is just bunk. I feel ripped off on my iLife '06 purchase.
    Grrrrrrr......
    G5 Dual 2.3 GHz   Mac OS X (10.4.5)  

    I don't know if this helps you any, but in my humble
    opinion Drake is absolutely correct. iWeb really
    wasn't designed for the pro site builder; it's just
    an entry level site builder. Moreover, it isn't
    really geared for the professional world of internet
    marketing; I think it is really more for the home
    and family group who have at least one thing in
    common: Macs.
    I don't think it was even designed for them. I mean, you can't create an ftp: link, you can't manage multiple site files, there's no way to add "aim:" or "yahoo:" links, etc. It's not mac's they're supporting. It's .mac in particular, maybe, if that.
    The art is kinda nice, but really, the grief in trying to do simple things like a basic href is just absurd. I can do these things easily in Pages. iWeb should certainly be no more difficult.
    Btw, I'm here because I have the same problem - overly restrictive URL's on hyperlinks. I'll probably solve my with a trivial sed script. But even that's tough because they mangle the url. It's not easy to find an encoding suitable for automatic post processing.
    Automator anyone?

  • Getting Session Cookie Not http protocol

    Hi.
    In doc, it is possible to get SessionCookie instance that
    HttpContainer#findSessionCookie. How can I get SessionCookie
    instance in the case not using http protocol or using cutomized sessionid?
    And, How can I realize that a object accesses to DB independently of a http request.
    For example, only one access in application for resource data.

    Hi,
    You may create a cookie using ApplicationPool.createSessionCookie against an ApplicationPool instance. ApplicationPool's may be instantiated using the singleton oracle.jbo.common.ampool.PoolMgr (see the findPool javadoc).
    Once you have created a SessionCookie you must cache it yourself in your client. Once you are done with the cookie just invoke oracle.jbo.common.ampool.SessionCookie.timeout() or oracle.jbo.common.ampool.ApplicationPool.removeSessionCookie(SessionCookie) to clean up the cookie instance.
    Only use timeout if there is a chance that you had not released the ApplicationModule or if you expect multi-threaded SessionCookie use (timeout will force release and synchronize the removal).
    Hope this helps,
    JR

  • Retrieve HTTP Protocol version from HttpServletResponse

    Hi,
    I need to set different headers in my HttpServletResponse using filter. Values of headers depend on version of HTTP - 1.0 or 1.1, thus I need to check the response's protocol version and add different headers to my response.
    For now I can see using external tool that each my request is HTTP 1.0 and each response is HTTP 1.1. How can I retrieve protocol version from response in my Filter?
    I cannot use protocol version from request, because as I said request and response have different versions of HTTP somehow.
    So how can I retrieve protocol version from HttpServletResponse?
    Thanks in advance.

    You need to read the Sun J2EE tutorial on filters. One of the things you will find is that you can not directl access and change the ServletOutputStream of the response object. You need to write a wrapper around the response object that contains you own output stream. Then you can read the data in this stream, parse it looking for the HTTP protocol version and add your additional headers. You then write the new data to the original ServletOutputStream of the response object which gets sent to the browser.
    I beleive there is an example of this in the tutorial. There are also examples available on the web and on this forum.

  • Would it be possible that saved passwords would work on both http and https version of the same site as some pages are switching from http to https?

    Some sites are switching from http to https protocols and some sites run both. This creates some duality when you have saved passwords. You either save passwords for both versions of the site. And if you visit the https version for the first time you just have to go and look up the password as (personally) I don't remember all of my passwords.
    Would it be possible that unless there are different passwords for different version of the site that firefox would use the one that it has already saved?

    You will have to save the password again in case the submit URL and possibly other parameters change.
    You can try this extension:
    * Saved Password Editor: https://addons.mozilla.org/firefox/addon/saved-password-editor/

  • How to set up and test the Basic Authentication for HTTP protocol

    Hi,
    I tried configuring the password based Basic Authentication for sending xml document using ebMS - HTTP protocol. I set username and password while configuring the transport server for both trading partners. I want to know, is that sufficient for basic authenticaton. When I open the URI http://localhost:7778/b2b/transportServlet, it is not asking any authentication (username/password). Please note that I have not used SSL certificate. Anyone please help me out to configure Basic authentication.

    Hi Ramesh,
    Thanks for ur response. Could you please tell me where to set the Additional Transport header : authtype-basic#realm=myRealm(in which property file). In enqueue code, I could see the following attributes
    queue
    msgID
    replyToMsgID
    from
    to
    eventName
    doctypeName
    doctypeRevision
    msgType
    payload
    attachment
    subscriber
    Is it possible to set username/password in the enqueue attributes?
    Do i need to add username/password and Transport header in the input XML and defined that elements in xsd?

  • Http and ftp protocol extremely slow (pop working well though)

    Hello. Starting today, on one of my macs, http and ftp protocol are extremely slow (page load 90 sec. instead of 2) (pop working well though). Provider finds nothing, on second mac all is fine (same cable, same settings … ). Cable connection, checked both sockets, changed cable, no change. Since pop3 protocol seems to work fine, this does look like a software problem to me. (Repaired permissions, no other tests or means. All used software up to date (OSX10.6.8 etc.))
    I'd be thankful for any idea.

    Not at all. Then I turned on NetBarrier, for testing and to avoid any damage (piece of software I don't employ in vain), and all slowed down again, but not quite as badly as before. Restarted, and now it seems back to normal with all extensions loaded. (I had done that before, obviously, and with no outcome, so it can't very well have been just that. But what?)
    I'll watch and learn, and report back; unless you have any further suggestions for the moment. Either way, thankyou very much so far.

  • Retry count and retry Interval fields in Business service (Http protocol)

    Is retry count and retry Interval in OSB business services(Http protocol) defined for retrying the application errors or for communication errors?
    Also even if my connection timeout is 0 I get an error response due to communcation issue in abt 2.5 mins.
    Please explain.

    - There is an explicit configuration on business service called "Retry Application Errors", if enabled application errors will also be retried.
    - If timeout is not set on business service then domain level timeout configuration comes into effect which is by default of 180 sec i.e 3 mins.
    Hope this helps.

  • Some internet radio stations with http protocol and mp3 format not working in AIR 2.0

    First, i am sorry for my bad english. When I publish swf for Flash 10 player all stations in my list works. If I publish them for AIR 2.0 stations with adress end ":XXXX", where XXXX is port number, they cannot work. What is problem? Thanks in advance.

    Perhaps,  in the previous post I wasn't clear enough, so I'll try to make it better: I am using the Adobe Flash CS5 and AS3. I wrote the script for listening internet radio stations. In the station list I named only those that use HTTP protocol and mp3 format, cause I know the limits of Flash in audio streamings. If I publish FLA file in SWF for Flash 10 player all the stations can be listened.. If swf file is made for AIR 2.0 there's a problem: the stations with adress  http://xxx.xxx:xxx/<something> can be listened, and those without extension behind the port number (:xxx) can not. Main parts of the script are:
    startButton.addEventListener(MouseEvent.CLICK, listen);
    req.url= "<adress>";
    snd = new Sound();
    snd.load(req);
    private function listen(event:MouseEvent):void {
    req = snd.play();
    Example:
    adress=http://scfire-ntc-aa08.stream.aol.com:80/stream/1010 - working
    adress=http://www.radionovosti.rs:443/radionovosti56s.mp3 - working
    adress=http://sh1.beotel.net:8002 - not working
    adress=http://77.105.36.58:8881 - not working
    It would be great if someone of Adobe employers explain to me what is the problem. Thanks.

  • Retrieve and send data to website using http protocol

    Hi, I wonder if anyone knows how to use java language to retrieve and send data to internet website using the http protocol.

    Take a look at this thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=310300

  • CD-Install and version based download protocol

    I am trying to create a cd-install for an app. using the -import -codebase features
    of javaws. This works as long as I do not have any version information within the
    cd based jnlp and the resources.
    If a specify a version with a resource (e.g. a jar) I get the following exception from
    javaws:
    java.io.FileNotFoundException: c:\cd\spirit_core_client.jar?version-id=0.4.5.0 (Die Syntax f�r den Dateinamen, Verzeichnisnamen oder die Datentr�gerbezeichnung ist falsch)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    It seems that javaws tries to do a file request with a url query string for the version.
    This will work with the JnlpDownloadServlet but not for a file request.
    What do I have to do?
    If I can not specify version information wouldn�t that make the differential (JarDiff)
    download impossible? Or can I than only use a timestamp (last-modified) based
    download?

    I filed a bug ion this. The CD install is implemented by substituting codebases, if the new codebase dosn't implement the version based download protocol, import won't work. The file protocol used when importing from CD cannot implement this. There should be a simple convension to allow versioned requests from file protocols to assume the response-version is equal to the request version (assuming no wildcarding is uded in the request-version).
    /Andy

Maybe you are looking for

  • I can't found weather icon on the iPad

    Hello I can't found weather icon on the iPad after I update iOS 7

  • External Display Problem w/10.6.5

    Hi, all. I'm having an odd external display issue that I can't figure out how to solve. I teach a class using my MBP, and as such have to plug it into the (VGA) projector in the classroom. Up until last week or so this worked perfectly. Now, when I p

  • AMFPHP hanging in browser but not Flash IDE?

    Wrote a service that sends a bytearray to my Flash app that works perfectly fine when I test it in the Flash IDE (CS5), and when I compile the app and run it in a browser directly from my computer. When I load it on to the server to run in my browser

  • For All Entries with two tables

    Hi All,          Can we use FOR ALL ENTRIES with two tables. for example SELECT * FROM MKPF INTO TABLE T_MKPF          WHERE BUDAT IN S_BUDAT. SELECT * FROM MARA INTO TABLE T_MARA          WHERE MTART IN S_MTART AND                         MAKTL IN S

  • [SOLVED] USB mount weird problem.

    So, I have this weird problem - udev automounting does not allow normal user to write to usb device. /etc/fstab: /dev/sdc1 /media/usbhd-sdc1 vfat users,exec,dev,suid 0 1 /etc/rules.d/10-my-udev.rules: KERNEL!="sd[a-z][0-9]", GOTO="mnt_auto_mount_end"