Perl, cookies and CGI.pm

Does anyone use Perl and CGI.pm to create and read cookies on a WebLogic 5.1 server?
I can create the cookie just fine, but I can't read the cookie I create
and I believe it is because the cgi-bin is outside the
public_html directory. Is this fixable?
I just want to do something real simple and I don't have time to learn Java!

          To what?
          "james" <[email protected]> wrote:
          >
          >Still hoping someone will respond.
          

Similar Messages

  • HTML 98: Learn HTML, CGI, Perl, Unix and Security, Mar19th-20th / San F

    --- HTML '98 ---
    Learn the Languages of the World Wide Web
    March 19th - 20th
    Hyatt Regency Hotel - San Francisco, CA
    Please, do not reply to this message. Use the address
    at the end of this message. Thank you.
    HTML '98 is divided into four main training sessions:
    - HTML Basics Tutorial - UNIX & Security for the World Wide Web
    - Building CGI Scripts - JAVA Tutorial.
    ======== March 19th ========
    ==> Reception (8:45am)
    ==> Session I (9am - 12:30) ** HTML Basics Tutorial **
    This section will teach you the basics of HTML for building Web Sites
    on the WWW. You'll learn:
    - how to write the code from basic page design and format styles
    - building tables, links, interactive maps, frames and forms
    - adding audio and video to Web Sites
    You'll walk away from this session with the expertise to build Web
    pages using HTML for publication on the World Wide Web.
    ***Who should attend: Beginners to HTML and programming for the Web.
    ==> Lunch (12:30 - 1:15pm)
    ==> Reception (1:00pm)
    ==> Session II (1:15pm - 5:00pm) ** Building Scripts **
    In this course, you'll learn how to create scripts to:
    - process forms
    - build on-line database facilities
    Using Perl and CGI (Common Gateway Interface) you'll walk away from
    this session with the skills to use programs in the advanced
    programming languages of the WWW that interface and support HTML
    creations.
    ***Who should attend: Those with knowledge of HTML and attendees
    of the HTML Basics Tutorial Session.
    ======== March 20th ========
    ==> Reception (8:45am)
    ==> Session III (9am - 12:30) ** UNIX & Security for the WWW **
    UNIX is a popular and reliable operating system for managing Internet
    applications. This section reviews:
    - how to upload and manage your Web site in Unix
    - the basic commands for establishing and using UNIX to administer and
    support Web Sites and Internet-related programs.
    - Unix file editing, security and access permissions
    You'll walk away with the expertise to upload and download HTML files
    and scripts to your server for publication on the World Wide Web;
    editing files directly on the server using UNIX tools and setting up
    UNIX file permissions.
    In the Security section, you'll learn all about:
    - Firewalls and the safeguards to protect internal proprietary data
    from outside sources
    - encryption technology and HTTP servers that support encryption,
    - basic set-up and usage procedures.
    ***Who should attend: Those with knowledge of HTML and attendees
    of the HTML Basics Tutorial Session and CGI Scripts session.
    ==> Lunch (12:30 - 1:00pm)
    ==> Reception (1:00pm)
    ==> Session IV (1:15pm - 5:00pm) ** JAVA Tutorial **
    In this session you'll learn :
    - how to write, compile and execute JAVA applets
    - implementation of Object Oriented code using JAVA
    - JAVA class libraries.
    You'll learn the effective use of multimedia, graphics and animation
    in JAVA and JAVA Scripts. Find out how to handle error conditions and
    make your JAVA program robust and maintainable.
    ***Who should attend: Those with knowledge of HTML and
    attendees of the HTML Basics Tutorial Session, Building Scripts and
    UNIX for World Wide Web and Security session.
    -----------------xxx-----------------
    Pricing: ** LEARN IT ALL ** FULL SEMINAR (all sessions): $580.00
    ------- One Session: $220.00 Two Sessions: $350.00
    Three Sessions: $480.00
    *** Group discounts and non-profit rates are available. ***
    For more information about HTML '98 or to register for the tutorial:
    call (703) 461-3688, email: [email protected]
    Register online at: http://www.eih.com
    To receive the HTML '98 Seminar Information Kit, please call us at
    (703) 461-3688 or email us at [email protected]. Please include your name,
    company/organization name, telephone and FAX number. Thank you.
    EIH Corporation
    Corporate Training Division
    8000 Towers Crescent Drive
    Tysons Corner
    Vienna, VA 22182
    Fax: (703) 760-7899
    Email: [email protected]

    ls -l /var/run/lighttpd/
    And how are you spawning the php instances? I don't see that in the daemons array anywhere.
    EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
    You will note that with pre-spawned information, the config looks different[1].
    You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
    [1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change"

  • Cookies and stuff in normal application...

    I have a stand alone application that is not a servlet nor reside on a server. I need to authenticate the users, can I use cookie servlet code in my regular applicaiton? I am trying to imagine if it is possibe for me to interact with a cgi script (we arleady have in place) that takes the username/pass and returns a cookie. Other suggestions are welcome...

    No. This application has nothing to do with browsers, I just connect to servers (usually web on port 80) using sockets. This all works fine, but now I want to make it more secure and have some authentication at the startup... I know of a cgi application we have that takes a username/password and returns a cookie and if I can just do that all will be well. The problem is I don't know of how to go about doing that.
    The problem with using the code from Servlets is that they have some request response objects that don't normally reside in a application (or would be hard to create) plus I don't know much about how they are instantiated and stuff... I assume there is a way but if I could just use a normal piece of code to connect to a web server to do this and retrieve the cookie I would be fine. The cookie is just a by product of the process, my code will get it and store it and then only use it for later authentication (it doesn't have to read the contents or write contents to it), merely stores it until it has to pass it back to the server for auth.

  • Can servlets/ jsp automatically run perl scripts and executables?

    I'm a student and am new to to servlets and web programming in general.
    I need to know if it's possible to run perl scripts and executables automatically from servlets/ jsp.
    The program I am planning on creating should have a client outside a firewall that uploads perl files to a gateway machine inside the firewall, the servlet should be able to run this perl file, and then pass the resulting file as an argument to an executable, to be run by another servlet on a different server.
    I've tried looking everwhere for an answer to this and am about to revert to a cgi based approach because I'm not sure if it would work so any help/ suggestions would be much appreciated.

    Hallo,
    I think using java Runtime will help. you can do Processes that execute shell or system commands through
    Process process = Runtime.getRuntime().exec("your perl scripts here!");
    Bye

  • Firefox will not respond after restarting my computer after making changes in the cookies and history settings

    I make some changes with cookies and cleared my history for today...and then restarted my computer...now firefox will not open...will not respond...should I uninstall firefox and then reinstall it?
    If I uninstall firefox will the changes I made with the cookies and my history be reversed?
    If I were to uninstall and then reinstall firefox will I loose my bookmarks if I do this? or does firefox remember them...so when I reinstall the previous bookmarks are reinstalled too?

    Does Firefox starts up when you first open it after rebooting the computer but hangs the next time you try to start it? If so, then there's a [https://bugzilla.mozilla.org/show_bug.cgi?id=1005487 bug] in Firefox 29 where Firefox hangs on exit when the setting "Clear history when Firefox closes" is selected, so that you get an "already running but not responding" error the next time you ttry to start it. In that case, end the firefox.exe process in the Windows Task Manager (or reboot the computer) then reset your Firefox Privacy options and UNCHECK the option "Clear history when Firefox closes". See this article for details:
    [[Settings for privacy, browsing history and do-not-track]]
    If that's not the problem and Firefox still not open even after rebooting the computer then try starting in Firefox Safe Mode by holding down the shift key while starting Firefox. If Firefox starts then see the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to narrow down the cause.

  • What is the relationship between CGI-Executables and cgi-bin?

    I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
    I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
    If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
    Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
    And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
    Ti Powerbook G4   Mac OS X (10.4.4)  

    Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
    My apache error log says:
    [Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
    Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
    I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
    Here's the first directory directives in httpd.conf:
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride Options
    </Directory>
    Farther down, there's this, which I added ExecCGI and index.cgi:
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    <Directory /Users/*/Sites>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    DirectoryIndex index.html index.cgi
    <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
    Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
    Include /private/etc/httpd/users/*.conf
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews Includes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
    Ti Powerbook G4   Mac OS X (10.4.4)  

  • I deleted cookies and now I cannot get into my aol mailbox from either my bookmarks or from the aol website. It says it is having trouble authenticating. Solution?

    I deleted some aol cookies and tried to get to my aol mailbox and could not. I then reset to allow cookies and went to the website to get into the mail with no luck. I was however able to get in from my old desktop aol icon.

    Hi Steve,
    Many online logins do not use the Keychain, but only Cookies, or possibly Auto Fill.
    Open Safari>Preferences>Autofill, is Usernames & PW checked?
    Then in the Security tab, what are the Accept Cookies setting? (Oh just saw in the server post you have that set OK).
    On the Apple ID thing, that generally happens if there are failed attempts to login, Log Out of Apple & try iForgot...
    https://iforgot.apple.com/cgi-bin/WebObjects/DSiForgot.woa/wa/iforgot?language=C A-EN&app_id=2417&newWindow=true&border=false

  • The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)

    The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)  Do you know where I go to change the setting to allow me to "always allow" cookies?

    Hi lisaarnett111,
    If you are having issues turning on Always Allow for cookies in Safari on your iPad, you may want to check to make sure that you don't have Private Browsing enabled, as noted in the following article:
    Turn Private Browsing on or off on your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • What is the diffrence between cookies and cache, is it safe to remove cache?

    what is the difference between cookies and cache , is it safe to remove cache ? . I had cleaned cookies many times but I have not removed cache , does it goes on increasing day by day ? please let me know

    Cookies are small files that contain information useful to a web site -- such as password, preferences, last date visited, etc. You may remove the cookies that you don't want adn since some of them are a privacy issue, many people remove them all.
    Cache is just a collection of data downloaded to help display a web page. After you leave a site, much of the cache is left on your computer and is no longer needed. You can always remove the cache because it will be replaced as needed.

  • I cannot access the internet, I tried to answer that said to go to settings, safari, tap clear history, cookies and cache, cut off, then on, but it did not work.  When I go to internet the screen is grey??? please help I am a new user!!

    I cannot access the internet the screen is grey, I have tried by using the answer from someone but it does not work...I went to settings, tap safari, then clear the history, cookies, and cache, then turn off ipad.  When I did that twice, it did not work.  How long does it take for the clear history to work?  I am a brand new
    user of the ipad2 and I am disappointed that this is happening already.

    Have you been able to access the internet previously and now it's suddenly not working, or are you still trying to access the internet for the first time on your iPad?  Are you at home trying to connect through your home router?  If you are at home, did you put your home routers encryption code as your password?  The encryption code is what your iPad is looking for and it is usually found on the router and is typically a 13 digit combination of letters and numbers.  Let us know......

  • Using Quicken to manage a bank account, I get an error message from the bank that cookies and javascript must be enabled, but I don't get that message when I connect with Internet Explorer.

    Firefox allows me to get the bank home page through Quicken. But when I try to login, the error message appears saying "cookies and javascript" must be enabled. I have Java on my system, but in Firefox under "tools/options/ I don't find any way to "enable" javascript. I have enabled "cookies".
    I have no problem logging in at the bank site using Internet Explorer, but to use it, I have to designate it as the "default browser" before connecting through Quicken. I'd rather keep Firefox as the default.
    A bank tech representative was unable to find any commands in Firefox that would deal with this problem, although she clearly had manuals for both Internet Explorer and Firefox. So she concluded that I would have to use Explorer for this operation, since it allowed control of security level settings. She said that in Explorer, security level should be set to medium.
    Is there some similar control in Firefox?

    Firefox uses the same "security level" setting that is set in IE.
    Tools > Options > '''Content''' <br />
    Is '''Enable Javascript''' check-marked?
    http://kb.mozillazine.org/JavaScript_is_not_Java
    If that doesn't solve your problem, do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I keep getting an error message that says "You need cookies to login to this site. Please enable cookies." I checked cookies and they're enabled. I went through and did what it said to fix errors like this and it still says that. How can I fix this?

    I am trying to login to a website and every time I go to login I get a message that says "You need cookies for this site. Please enable cookies." I've checked cookies and they're enabled, I even put that specific website on allow. I searched for information on how to correct this error and did all that it said, yet I still get this message.

    I have the exact same problem! With just one website. It's when I have a second account on it. I can sign in with my original (old) account, but not with my new account that I wish to sign in on. I've talked to a lot of people members of the website who have second accounts and this doesn't happen with them, it's only with my firefox. I've done everything I can to enable cookies, 3rd party cookies, no exceptions, etc.
    But it must be something to do with my computer because I did the same thing on Internet Explorer and Google Chrome and it's exactly the same. :/

  • I want to empty the Safari cache in OS 10.8.5, but cannot find the cache in the drop down menus. Where is it? Or do I go to preferences-privacy and select remove all cookies and website data?

    I received a 'bogus' email saying I had a virus and to click to scan my entire OS. I did not click - I trashed the email.
    I wanted to empty my cache but couldn't find it (OS 8.10.8.5) -- In the main menu, under Safari, the only thing I found was to select preferences, then privacy -- where a window showed an option of removing some or all cookies and other website data.
    Is that what I should do or is there a cache somewhere on the laptop?
    Thanks

    You were scammed. There's nothing wrong with your computer. You don't need to empty the cache.
    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide and AdwareMedic. If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)
    Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
    The following comes from user stevejobsfan0123. I have made minor changes to adapt to this presentation.
    Fix Some Browser Pop-ups That Take Over Safari.
    Common pop-ups include a message saying the government has seized your computer and you must pay to have it released (often called "Moneypak"), or a phony message saying that your computer has been infected, and you need to call a tech support number (sometimes claiming to be Apple) to get it resolved. First, understand that these pop-ups are not caused by a virus and your computer has not been affected. This "hijack" is limited to your web browser. Also understand that these messages are scams, so do not pay any money, call the listed number, or provide any personal information. This article will outline the solution to dismiss the pop-up.
    Quit Safari
    Usually, these pop-ups will not go away by either clicking "OK" or "Cancel." Furthermore, several menus in the menu bar may become disabled and show in gray, including the option to quit Safari. You will likely have to force quit Safari. To do this, press Command + option + esc, select Safari, and press Force Quit.
    Relaunch Safari
    If you relaunch Safari, the page will reopen. To prevent this from happening, hold down the 'Shift' key while opening Safari. This will prevent windows from the last time Safari was running from reopening.
    This will not work in all cases. The shift key must be held at the right time, and in some cases, even if done correctly, the window reappears. In these circumstances, after force quitting Safari, turn off Wi-Fi or disconnect Ethernet, depending on how you connect to the Internet. Then relaunch Safari normally. It will try to reload the malicious webpage, but without a connection, it won't be able to. Navigate away from that page by entering a different URL, i.e. www.apple.com, and trying to load it. Now you can reconnect to the Internet, and the page you entered will appear rather than the malicious one.

  • I have an IPone 4, there is an add video for Capital one that keeps coming up on its own... ive deleted my history and cookies and this video keeps taking over my phone. how do i get rid of it? the video is of a man with a puppet and the puppet is singing

    i have an IPone 4, there is an add video for Capital one that keeps coming up on its own... ive deleted my history and cookies and this video keeps taking over my phone. how do i get rid of it? the video is of a man with a puppet and the puppet is singing a song while he is checking his phone. how do i get rid of it????

    If it happens again the make sure that you aren't suppressing website colors.
    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *https://support.mozilla.org/kb/Options+window+-+Content+panel
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • I want to clean all of the cookies and bugs that are in my computer causing it to be slow. What program should I use that is safe and won't mess up my computer?

    I want to clean all of the cookies and bugs that are in my computer causing it to be slow. What program should I use that is safe and won't mess up my computer?

    Problem description:
    I would like to clean up my computer. Its beginning to run slow and I believe cookies and bugs are apart of the reason.
    EtreCheck version: 2.0.6 (91)
    Report generated October 26, 2014 at 4:59:31 PM EDT
    Hardware Information: ℹ️
      MacBook Air (13-inch, Early 2014) (Verified)
      MacBook Air - model: MacBookAir6,2
      1 1.4 GHz Intel Core i5 CPU: 2-core
      4 GB RAM Not upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1600 MHz ok
      Bluetooth: Good - Handoff/Airdrop2 supported
      Wireless:  en0: 802.11 a/b/g/n/ac
    Video Information: ℹ️
      Intel HD Graphics 5000 -
      Color LCD 1440 x 900
    System Software: ℹ️
      OS X 10.9.5 (13F34) - Uptime: 13 days 2:41:41
    Disk Information: ℹ️
      APPLE SSD SD0128F disk0 : (121.33 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) /  [Startup]: 120.47 GB (70.38 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
      Apple Internal Memory Card Reader
      Apple Inc. iPhone
      General USB Flash Disk 16.13 GB
      S.M.A.R.T. Status: Verified
      MSD (disk1s1) /Volumes/MSD : 16.13 GB (11.18 GB free)
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Extensions
      [loaded] foo.tap (1.0) Support
      [loaded] foo.tun (1.0) Support
    Startup Items: ℹ️
      tap: Path: /Library/StartupItems/tap
      tun: Path: /Library/StartupItems/tun
      Startup items are obsolete and will not work in future versions of OS X
    Problem System Launch Daemons: ℹ️
      [failed] com.apple.wdhelper.plist
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist Support
      [running] com.perion.searchprotectd.plist Support
    User Launch Agents: ℹ️
      [loaded] com.genieo.completer.download.plist Support
      [loaded] com.genieo.completer.ltvbit.plist Support
      [running] com.genieo.completer.update.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [invalid?] com.jdibackup.ZipCloud.autostart.plist Support
      [running] com.zeobit.MacKeeper.Helper.plist Support
    User Login Items: ℹ️
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
      DirectorShockwave: Version: 12.1.3r153 - SDK 10.6 Support
      Flash Player: Version: 15.0.0.189 - SDK 10.6 Support
      FlashPlayer-10.6: Version: 15.0.0.189 - SDK 10.6 Support
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
      QuickTime Plugin: Version: 7.7.3
      Default Browser: Version: 537 - SDK 10.9
    User Internet Plug-ins: ℹ️
      TroviNPAPIPlugin: Version: 1.0 - SDK 10.9 Support
    Safari Extensions: ℹ️
      Trovi Search for Safari (Disabled)
    3rd Party Preference Panes: ℹ️
      Flash Player  Support
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          53% mds
          9% WindowServer
          3% mds_stores
          3% storeagent
          2% hidd
    Top Processes by Memory: ℹ️
      920 MB mds
      31 MB com.apple.WebKit.WebContent
      30 MB Messages
      29 MB Safari
      21 MB WindowServer
    Virtual Memory Information: ℹ️
      31 MB Free RAM
      713 MB Active RAM
      681 MB Inactive RAM
      1.09 GB Wired RAM
      17.85 GB Page-ins
      1.95 GB Page-outs

Maybe you are looking for