CGI Script for Go Daddy hosting

I just transferred my website to GoDaddy web hosting. I m
trying to figure out what script or code to use for my Form, but
nothing seems to work. Does anybody know about this? Also, what to
put into the Property Inspector for Form Action and Method and Enc
Type. Many,many thanks!

Just ignore the naysayers?
Why? Are our experience with GoDaddy invalid, trivial or a
fluke compared to yours?
"With difficulty on the way"..... Why? Is this something that
might have been avoided without so many restrictions on server
functionality? I had some very friendly reps there try to help, and
they were great, but they couldn't resolve a some "known" issues.
Is the "difficulty" you experienced something a person new to
building websites would find more difficult than you did? Do you
use other hosts where you can say you have experienced the same
difficulty?
Please don't take me wrong.
I used to be in the same position as you. I had a few sites,
including 2 Cartweaver sites, hosted there with no problem. I think
the reason I had no problems was in large part to the fact that I
didn't need support in setting up things like database connections
and so on. I was able to figure out how to do things on the servers
from experience, with some work arounds.
I do remember thinking a few times that it would have been
very difficult doing some of the things I did if I were still
learning, especially with a couple ecommerce sites. That's the
point.
I saw many complaints and issues in this forum as well as
others, including Cartweaver's newsgroups, about dynamic sites
there and I didn't "ignore" all of the naysayers even though I
hadn't had trouble yet.
I figured there must be some truth to their experience. They
certainly weren't making things up.
Besides, who was I to say my experience was the norm and
others should expect the same because that's how it is for me?
I did have better support and service, with less "difficulty"
and restrictions at a few other hosts I was using, but it wasn't a
big issue as I wasn't having major trouble at GD.
Unfortunately, my luck ran out.
However, because I didn't ignore the naysayers I had decided
to test them longer before migrating more sites. It's a good thing
I did, and I'm grateful to those who shared their experiences,
because I only had to move a few sites off and not many more.
The latest was a "known issue" on a certain server causing an
HTTP error intermittently, for hours. For weeks, I went back and
forth as it was "fixed" and reappeared again. This was a Cartweaver
site.
Obviously, the client pulled the plug. You can't hang an
"Open intermittently" sign on an online store.
The site was moved, with no changes what-so-ever to any code,
to another host. The problem immediately disappeared, and has
remained gone.
I do still have 1 CW site hosted with them that hasn't had
major trouble yet. It's on another server and low traffic.
The point is, I have experienced trouble too many times that
cost time and money and shouldn't have.
There is value to this experience, and others who have had
the same.
You can certainly say you've had no trouble, and that's
great. There's value in that, as well.
However, telling someone relatively new to just "ignore"
issues that others have had doesn't make sense to me.
If some web developers have reported trouble, isn't it a good
idea to do some research or at least see how one site works there
for a while before putting up a lot more?
Experiences others have had, especially when they are trying
to help someone new, shouldn't be ignored just because yours is
different. You can't guarantee the person will have the same
experience as you, so all points of view should be listened to and
weighed.
Take care,
Tim

Similar Messages

  • CGI script for simple form

    Can anyone give me a CGI script that will make a form
    automatlly e-mail the information gathered from an online form?
    Can that code be placed right into the html file?

    There are only two ways to process form data -
    1. Use mailto:[email protected] as the action of the form
    2. Use a server-side scripting method to a) harvest the
    form's data, b)
    process it in some manner, e.g., enter it into a database, c)
    formulate and
    send an email to one or more email recipients, and d)
    redirect the visitor
    to some ending page
    Method 1 is quite simple, and is also the least reliable. It
    depends both
    on your visitor having an email client already installed on
    their computer -
    this eliminates public computers, or home users without email
    clients
    installed (more and more it seems) - and on the installed
    email client
    responding to
    the mailto call. It is not possible to use this method *and*
    send the
    visitor to a
    thank you page as well.
    Method 2a is the preferred method, since it eliminates the
    problems of
    method
    1, but it means that you have to grapple with
    server-scripting somehow (ASP,
    CF, PHP, perl, etc.).
    Method 2b would be to use some third-party form processing,
    like
    http://www.bebosoft.com/products/formstogo/,
    or if your server supports PHP,
    you could investigate
    http://www.geekministry.com/formbuilder/,
    a very nice
    product by a frequent poster here.
    You would have to decide which of these methods is best for
    your needs,
    but if it's Method 2a, then start by asking your host what
    they provide for
    form
    processing. If it's 2b, then read their FAQ/instructions
    carefully.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "inhouse7" <[email protected]> wrote in
    message
    news:gda6ap$79k$[email protected]..
    > Can anyone give me a CGI script that will make a form
    automatlly e-mail
    > the information gathered from an online form?
    > Can that code be placed right into the html file?

  • Any Suggestions for CGI Script for Web Slide Slow?

    Do you have any suggestions for creating a slideshow for my web site, 6 same-size jpgs that rotate automatically?
    I think I prefer a cgi script. However, I've tried two that don't work on Firefox or Safari. One developer tells me that he can see the rotating photos.
    I'm also open to software to create this. However, I'd prefer to use html code.
    Of course, it must work cross platform.
    Any suggestions?
    G5 Quad; Mini Mac; PowerBook G3; iPods   Mac OS X (10.4.8)   Using Dreamweaver 8

    Oh, what a beautiful baby! Is he/she yours?
    She is mine. At least that's what the Mrs. tells me!
    When you say gif, I am assuming that you mean the
    format really must be gif and not jpg. Is that
    correct?
    Yes, the file is a GIF file. It's actually an animated GIF file, meaning that the images that you see are all frames of animation in a single GIF file. There are a lot of apps out there that can create animated GIFs. I happen to use Adobe ImageReady because that is what is on the hard drive.
    Can you give me a hint about the dithering issue? Do
    I dither or not dither, that is the question.
    This is the major downside of the GIF format. It is a really old format...from back in the CompuServe bulletin board days...maybe older. Anyways, it is my understanding that GIFs can only hold information for 256 colors....any 256 colors, but no more and no less. So now in the days of "millions of colors" jpegs, you can imagine that a 256 color palette is limiting. But if the colors of your images are sufficiently close, its possible that 256 colors makes for perfectly acceptable images across all images. This is the one variable of converting images to GIF that can make it or break it for you. If your image has a pretty broad tonal range...like fleshtones or any other gradient...then 256 colors is going to represent things poorly. Then you will get dithering artifacts which is like averaging errors...colors are close...as close as possible...but not close enough to make a smooth gradation. Anyways, that's my layperson's understanding.
    But for some images, it looks just fine.

  • CGI script for forms

    Hi,
    I have to add form elements to my help topics for getting
    feedback from users. This requires a CGI script to recognizes the
    form elements. While I understand that this is primarily the job of
    a developer, can anyone help me with a reusable script so that I
    can work on my own.
    Thanks much!

    Try
    here.. I think the
    "FormMail" script is the one you need.

  • CGI Scripts for Mysite website?

    Hi everyone. I'd like to thank you in advance if you give me any information about my following question. I own webspace from Verizon. I don't use the SiteBuilder, but instead I make my webpages from CSS, HTML, Javascript, ect. and use FTP to transfer the files onto my webspace. I have read that Verizon lets users incorporate pre-made CGI scripts into their page, so I thought I'd give it a try. I have been trying to use the "Guestbook" script, following exactly what they say to do to install it. But once I have installed everything into a page and FTP it to my webspace, it gives me a 404 Error, saying it can't find "../guestbook.exe" (after submiting my comment). Can anyone help me with this problem? I followed these directions exactly:
    http://www.verizon.net/central/vzc.portal?_nfpb=true&action=Using%20the%20Guestbook%20Script&_pageLa...
    Please help me. Thank you.

    It seems they have wrong info on there.
    This is the code on my site using the site builder.
    <p>
    <!--gem:tlx.tlx.guestbook-->
    <p align="center"><font face="Arial,Helvetica,sans-serif" size="1" color="cccccc"><b><a href="http://svcs.verizon.net/svcs/dcc.jsp?tpage=upub:index.html&amp;dsrc=gb:842877486280280279/DS_TLXGuestbook_1264975106653.xml&amp;partner=verizon&amp;pcon=yes&amp;xsl=dccfile:gb.xsl&amp;obpp=zlrc2O5cwtTqxMLU6M5QntrawH5c5PrOaGL6yg..&amp;ret_url=http://mysite.verizon.net/your_use_rname/index.html&amp;page=sign"><font color="cccccc"><img border="0" src="/imagelib/sitebuilder/gem/guestbook/sign_my_guestbook_gray.gif"></font></a>&nbsp;&nbsp;<a href="http://svcs.verizon.net/svcs/dcc.jsp?tpage=upub:mypersonalsite/index.html&amp;dsrc=gb:842877486280280279/DS_TLXGuestbook_1264975106653.xml&amp;partner=verizon&amp;pcon=yes&amp;xsl=dccfile:gb.xsl&amp;obpp=zlrc2O5cwtTqxMLU6M5QntrawH5c5PrOaGL6yg..&amp;ret_url=http://mysite.verizon.net/your_user_name/index.html&amp;page=1"><font color="cccccc"><img border="0" src="/imagelib/sitebuilder/gem/guestbook/view_my_guestbook_gray.gif"></font></a></b></font>
    </p>
    <!--end gem--><!--"''"-->
    </p>
    Where your_user_name is what ever my user name is (In your case, what ever your user name is).
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Cgi script for VMS.

    Hello Folks,
    I want sample code for CGI in VMS operating system.
    Pls if anybody has the script pls post it here.
    Thanks,Raghu.K

    Raghu,
    I think you have landed on the wrong forum. This one is for Oracle HTML DB.
    Sergio

  • What CGI scripts are recommended for form2email?

    My site is on register.com. I'm trying to use a script from form2email.net which was recommended by that host. The Dreamweaver code for the form looks fine to me. The script (written in Perl) executes, goes to a thank_you page, sends an email with correct from, to and subject. But the body of the email has no data except for the value of the submit button and info the script adds to any email it sends. I modified the script for my app using Notepad ++, changing only user-specified fields that had to be changed. I'd appreciate thoughts on what might be wrong, or a recommendation for a form2email script that works well with Dreamweaver.
    register.com says they can't help with "coding problems," though they recommended the script, and I couldn't find help for my problem at the developer's site.

    Why do you have 2 form tags on your HTML file?
    The reason why you're getting just 'Submit: [Send]' in your e-mail is because you're closing your actual form before your 'submit' button and starting another form just for the 'submit' button.
    Your formmail script interprets the only value is your '[send]' and it just parses that as an e-mail to you.
    Change your code this way:
       <form action="http://www.advocatesforclassicalmusic.org/cgi-bin/docentreq.pl" method="post" enctype="multipart/form-data" name="DocentRequest" id="DocentRequest">
          <p><strong>Date
            <input name="Date" type="text" id="Date" size="25" maxlength="25" />
          </strong></p>
          <p><strong>School
              <input name="School" type="text" id="School" value="" size="90" maxlength="90" />
          </strong></p>
          <p><strong>Address
            <input name="Address" type="text" id="Address" size="90" maxlength="90" />
          </strong></p>
          <p><strong>Area
            <input name="Area" type="text" id="Area" size="30" maxlength="30" />
          </strong></p>
          <p><strong>Teacher or Contact
            <input name="Teacher or Contact" type="text" id="Teacher or Contact" size="50" maxlength="50" />
          </strong></p>
          <p><strong> School Phone
            <input name="School Phone" type="text" id="School Phone" size="20" maxlength="20" />
          </strong></p>
          <p><strong>Home Phone
            <input name="Home Phone" type="text" id="Home Phone" size="20" maxlength="20" />
          </strong></p>
          <p><strong>Cell Phone
            <input name="Cell Phone" type="text" id="Cell Phone" size="20" maxlength="20" />
          </strong></p>
          <p><strong>Email(s)
            <input name="Email(s)" type="text" id="Email(s)" size="90" maxlength="90" />
          </strong></p>
          <p><strong>Number of Classes
            <input name="Number of Classes" type="text" id="Number of Classes" size="10" maxlength="10" />
          Students per Class
          <input name="Students per Class" type="text" id="Students per Class" size="10" maxlength="10" />
          </strong></p>
          <p><strong>Grade Level(s)
            <input name="Grade Level(s)" type="text" id="Grade Level(s)" size="25" maxlength="25" />
          </strong></p>
          <p><strong>Concert Name
            <input name="Concert Name" type="text" id="Concert Name" size="50" maxlength="50" />
          </strong></p>
          <p><strong>Concert Date
            <input name="Concert Date" type="text" id="Concert Date" size="25" maxlength="25" />
          </strong></p>
          <p><strong>Other Information
              <textarea name="Other Information" cols="70" rows="4" id="Other Information"></textarea>
          </strong></p>
        </form>
        <form id="Docent Request" name="Docent Request" method="post" action="http://advocatesforclassicalmusic.org/cgi-bin/docentreq.pl">
          <input type="submit" name="Submit" id="Submit" value=" [ Send ] " />
        </form>
    Remove the lines that I've striked out from your HTML file and that should fix the issue.

  • This.submitForm() -- problem with my cgi script

    Thanks to George Johnson for an earlier answer to a related issue with this.submitForm.
    I am trying to use this.submitForm as per Example 1 on p. 348 of "JavaScript for Acrobat API Reference" document.
    To avoid any restrictions with my web hosting service, I am using the following JavaScript (on my form's Submit button) on my local XAMPP server:
    this.submitForm ("./cgi-bin/myscript.cgi");
    My question involves what should be in the myscript.cgi file before I submit to it.  If there is no file to start with, the
    submission will result in a "File not found" error.  So I guess I need the myscript.cgi file in the cgi-bin folder to begin with.
    When I put in a blank myscript.cgi file in that folder (hoping the submission will overwrite it), I can the following message:
    Server error!  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or
    there was an error in a CGI script.
    Can you tell me what is happening?  What should my original myscript.cgi have in it, if anything?

    Thanks for responding.
    I want CGI script to processes the incoming data from the PDF form submission. I want that process to save the FDF to a file on the server. 
    I also understand that the script has to return a response to the client.  I would like to send some kind of confirmation to the client.
    I realize that writing scripts isn't rocket science, but it would seem that Adobe would have some examples of scripts that deal specifically with fdf data.  Could you point me to any examples?

  • Firefox profile got corrupted? can't run cgi scripts anymore

    Something happened recently that hosed my ability to run cgi scripts from my firefox profile.  If I browse to my local webserver at http://localhost/blah I was able to run a cgi script.  Now for some reason, firefox asks me if to save the script rather than running it.
    Opening monitorix.cgi
    You have chosen to open monitorix.cgi
    which is a: BIN file
    from: http://localhost
    Would you like to save this file?
    [Cancel] [Save File]
    If I load firefox with a fresh profile, I am able to run the cgi script with no such problems.  I don't want to create a new profile to solve this.  Does anyone know which setting controls this behavior so I can fix it?
    Thanks!
    EDIT: this is too weird.  If I browse to http://reborn/blah (reborn is the hostname of my local PC) rather than http://localhost/blah, the script runs just fine!  What's going on?  Again, this localhost problem only affect my user's firefox profile.
    Last edited by graysky (2010-02-06 19:52:44)

    Same thing seems to be true when I try connecting to other PC's on my LAN.  If I use their hostname I get nothing, if I use their IP it works.
    Browsing to --> http://mars/http will result in firefox trying to connect "transferring data from mars..." and it hangs as such forever.
    Browsing to --> http://192.168.1.101 will result in the page loading perfectly.
    If I repeat the above using a new profile within firefox, everything works!  I'm at a loss to explain it.
    $ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost reborn
    192.168.0.101 mars
    Last edited by graysky (2010-02-06 19:56:50)

  • Formmail action & cgi scripts

    I have 2 forms I built in CS3 that have to be processed in a
    secure manner. I followed the advice I found online and from my
    webhost (network solutions) and downloaded Visual Form Mail Pro. I
    uploaded the cgi script files to the cgi-bin on the server and
    setup the permissions. When I click the submit button on the form,
    I get an Internal Server Error message. I think the problem is the
    action field on the properties panel. I cannot find anything that
    will tell me what the action should be. I cannot use the mailto
    action, the forms are for secure medical information to be
    forwarded to a dr's office. One other issue with how the form needs
    to be processed to email, is my client wants the email sent to his
    gmail account, how do I configure that?
    the url for the form I tried to configure is
    https://www.stluciegi.com/contact/patientcontact.html

    ou can use PHP on this hosting?
    I'd suggest using the phpformmail script.
    here's my stock cut 'n paste on what to set to what, and why
    1)go to
    http://http://developerkarma.com/projects
    -->phpformmail
    download it.
    extract the ZIP file.
    More detailed instructions are in the docs folder. These
    shortcut
    instructions are for version 1.07 of the phpformmail script.
    2) open formmail.php in dreamweaver
    Make the following changes (in code view, turn line numbers
    on)
    2a)
    line 4,
    define('CHECK_REFERER', true);
    change to:
    define('CHECK_REFERER', false);
    reason: too many people use a firewall or Norton security to
    restrict this.
    2b)
    Line 43
    $referers = array('www.example.com', 'example.com');
    change to the domain name of your web site.
    reason: this probably isn't needed since we just turned the
    referrer
    checking off. but change it anyway.
    2c)  *this is to hard-code the recipient address into
    the php
    file, where it is totally invisible *
    Line 46
    $recipient_array = array();
    change to:
    $recipient_array = array('me' =>
    '[email protected]');
    **of course, replace [email protected]  with
    the email address
    you want to receive the form data. Also note the single quote
    marks.
    reason: this sets the email address the form results will be
    sent to.
    You can also make a list of possible recipient alias values-
    see the readme
    in the docs folder.
    2d) give the script a default "From" address to use.
    Go to line 41
    Change:
    define('FROM', null);
    to:
    define('FROM', 'Example Name <[email protected]>');
    substituting your name and email address.
    3) now do a File-->Save As and save this file to within
    this Local Site
    folder. save it as anythingyouwant.php
    4) in dw's File Panel, find anythingyouwant.php and upload it
    to the remote
    site.
    5) Now open your form html file in dreamweaver,
    5a)click the mouse into the form area, and select the
    <form> tag on the
    lower left margin of the design window.
    In the Property Inspector, it should now show the properties
    of the <form>
    tag. In the Property Inspector, to the right of the ACTION
    line, click the
    folder icon and browse to and select the anythingyouwant.php
    file
    you've saved to within this site.
    5b) now click within the form area and go to dw
    menu-->Insert-->Form
    Objects-->Hidden Field
    This inserts a hidden form field.
    In the property inspector, change the NAME/ID of this field
    to: recipient
    And the VALUE of this field to: me
    the code should look like:
    <input name="recipient" type="hidden" id="recipient"
    value="me">
    This tells the script to use the "me" recipient_alias value
    as the email
    address to send the form to.
    5c: Do you have a form field to collect the user's email
    address?
    If yes, if this field is named exactly "email" then the
    script will use the
    user's email as the reply to in the outgoing email
    6) Save and upload the form page.
    Try the form from the website.
    Optional:
    1-make a new page for a thank you for submitting message.
    In the form, insert another hidden field.
    Name: redirect
    Value:  the full absolute
    http:// address to the new thank you page.
    If you don't set a redirect value- the form script will build
    a "thank you,
    here is what you submitted" page. If you want to use that
    dynamic page-
    upload the .css file that it uses.
    2- If you have a field in the form to collect the visitor's
    email address,
    IF you name this field  in the form exactly  
     email   then the visitor's
    email address will be the Reply To address in the outgoing
    email.
    There are 30 or so other optional form fields to control the
    form- see the
    readme in the docs folder. One of those optional control
    fields is
    verification.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Running cgi script placed on one machine by a web server installed on anoth

    I have weblogic installed on machine 1 and
    CGI Script placed on another machine 2.
    Is it possible for Weblogic to service/run CGI Script placed on machine 2. If so how can we do it.

    Mah
    I don't know about Weblogic, but here is some code that POSTs to a CGI script (XXX.pl) with a few parameters and retrieves part of the result (and HTML table) in a large string.
    Maybe you could use this kind of thing:
    protected String getTable(String hostID, Interval interval) throws IOException{
    StringBuffer query=new StringBuffer(100);
    Socket s = new Socket("some.host.com",80);
    BufferedReader in = new BufferedReader
    (new InputStreamReader(s.getInputStream()));
    PrintWriter out= new PrintWriter(s.getOutputStream());
    Calendar c=Calendar.getInstance();
    c.setTime(interval.getStart());
    query.append("s%5fm="+MonthConverter.int2mmm(c.get(Calendar.MONTH)));
    query.append("&s%5fd="+c.get(Calendar.DAY_OF_MONTH));
    query.append("&byear="+c.get(Calendar.YEAR));
    query.append("&Report=Submit");
    out.print("POST /cgi-bin/XXX.pl?site="+hostID+" HTTP/1.0\n");
    out.print("Accept: text/html\n");
    out.print("User-Agent: yourapplicationname\n");
    out.print("From: myemail@myhost\n");
    out.print("Content-type: application/x-www-form-urlencoded\n");
    out.print("Content-length: "+query.length()+"\n\n");
    out.print(query.toString());
    out.flush();
    String line;
    boolean finished=false;
    boolean started=false;
    StringBuffer resultBuffer=new StringBuffer(1000);
    while ((line = in.readLine()) !=null
    && !finished) {
    if (line.indexOf("Tmin,Tmax and Precipitation amount")>-1)
    started=true;
    if (started)
    resultBuffer.append(line);
    if (line.indexOf("</HTML>")>0)
    finished=true;
    out.close();
    in.close();
    return resultBuffer.toString();

  • Running CGI scripts

    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

    Marta,
    Thanks for your reply. I followed your advice, it still complains
    cgi-bin: Failed to exec CGI script:ntcgi.cgi
    Any ideas?
    Raja
    Marta Ramos wrote:
    Hi,
    I had the same problem. Try this:
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin/reports
    And access to the cgi script as
    http://<host:port>/cgi-bin/ntcgi.cgi
    Do not ask me why, but WebLogic do not admit directories after
    the cgi-bin directory at the URL. That is why he is trying to
    execute the cgi script "reports".
    Hope this help you.
    Marta.
    Raja Ramanathan <[email protected]> wrote:
    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

  • How can i call a CGI script from java?

    The subject pretty much says it all. I want to call a perl cgi script so i can read from/write to files on a server. I don't know how to sign applets and this would be the easiest way for me, if someone could please tell me.

    Let me get this clear. Basically what u want to do is to just call a URL, right?
    U can do it by using the following code:
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    public class testhttp
    public static void main(String[] args)
    try
    URL url = new URL ("http://../testcgi.cfm");
    HttpURLConnection cxn =
    (HttpURLConnection)url.openConnection();
    cxn.setRequestMethod("POST");
    cxn.setUseCaches(false);
    cxn.setDoOutput(true);
    cxn.setDoInput(true);
    ByteArrayOutputStream bytes = new
    ByteArrayOutputStream(400);
    PrintWriter writer = new PrintWriter (bytes,true);
    writer.print("application=map&release=1&items=prog1");
    writer.flush();
    cxn.setRequestProperty("Content-
    Length",String.valueOf(bytes.size()));
    cxn.setRequestProperty("Content-
    Type","application/x-www-form-urlencoded");
    bytes.writeTo(cxn.getOutputStream());
    System.out.println(bytes);
    String currentLine;
    BufferedReader in = new BufferedReader (new
    InputStreamReader(cxn.getInputStream(),"8859_1"));
    while((currentLine = in.readLine()) != null) {
    System.out.println(currentLine); }
    catch(Exception e) { e.printStackTrace(); }
    There is also a library called HTTP client which can be found at:
    http://www.innovation.ch/java/HTTPClient/index.html
    It's very simple to use and the documentation is all there, but their web server seems to be down right now.
    Anyway, hope my post helps.

  • Here are scripts for getting OAS302 working on RedHat 6.0

    People have said this doesn't work. It works. It's just the
    owsctl that doesn't work. I'm not saying that oas302 on RedHat 6
    is the best solution anyone could come up with, but it does work,
    and if you want to do it, here are some scripts that you can feel
    free to modify and use as you wish. Various variables should be
    updated with however you system is configured. Remember to start
    the wrb (i.e. the second script) before you start any listeners.
    Linux has a tendency to crash if you don't kill -KILL all the wrb
    processes at the same time (i.e. the kernel gets an uncaught
    exception and dies).
    Erik
    <disclaimer>
    I do not guarantee these will work. I do not guarantee that
    they will not destroy something important. I assume no liability
    for what these scripts may or may not do. Use them at your own
    risk. There is no expressed or implied waranty.
    </disclaimer>
    #!/bin/ksh
    # Script to start the oraweb http servers to listen for requests
    # because owsctl is kind of unpredictable under RedHat 6.0
    # set this variable to be the directory that the webserver
    # configuration drivetoryies are under (i.e.
    # /db/app/oracle/admin/ows/web/httpd_my.host.com)
    WEB_HOME=/db/app/oracle/admin/ows/web/httpd_my.host.com
    LISTENER="$2"
    if [[ -z "$LISTENER" ]]
    then
    echo "No listener name to start."
    echo "Usage: listen {start|stop} listener"
    echo "e.g.:"
    echo " listen start admin"
    exit 1
    fi
    case "$1" in
    start)
    OMN_ADDR=UDP:worf.gcg.com:2649
    OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
    OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
    OWS_ORAWEB_FREEDOMX=1
    export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FEEDOMX
    CFG_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.cfg
    if [[ -f "$CFG_FILE" ]]
    then
    oraweb -C $CFG_FILE
    else
    echo "Could not find config file for $LISTENER:"
    echo " $CFG_FILE"
    exit 1
    fi
    stop)
    PID_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.pid
    if [[ -f $PID_FILE ]]
    then
    kill `cat $PID_FILE`
    if [[ $? -ne 0 ]]
    then
    echo "Could not stop oraweb $LISTENER process."
    exit 1
    fi
    else
    echo "Could not find oraweb $LISTENER PID file:"
    echo " $PID_FILE"
    exit 1
    fi
    echo "Usage: listen {start|stop} listener"
    echo "e.g.:"
    echo " listen start admin"
    exit 1
    esac
    #!/bin/ksh
    # Script to start up the Oracle Web Request Broker (wrb)
    # processes manually because owsctl doesn't work on RedHat
    # Linux 6.0
    TMP_FILE=/tmp/wrb.pids
    case "$1" in
    start)
    SLEEP=3
    if [[ -f "$TMP_FILE" ]]
    then
    echo "$TMP_FILE exits. Make sure the wrb is not
    already"
    echo "running, remove $TMP_FILE, and run this script
    again."
    exit 1
    fi
    if [[ -z "$ORAWEB_HOME" ]]
    then
    echo "ORAWEB_HOME is not set. This environment variable"
    echo "should be set to the directory where the oracle was"
    echo "lives, i.e. /app/oracle/product/8.0.5/ows/3.0"
    exit 1
    fi
    OMN_ADDR=UDP:my.host.com:2649
    OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
    OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
    OWS_ORAWEB_FEEDOMX=1 # I have no idea what this does; I read
    # about it in a newsgroup. Supposedly
    # it makes the oas run faster
    export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FREEDOMX
    PATH=$ORAWEB_HOME/bin:$PATH
    mnaddrsrv -D &
    echo -n "$! " > $TMP_FILE
    sleep $SLEEP
    mnrpcnmsrv &
    echo -n "$! " >> $TMP_FILE
    mnorbsrv &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrbcfg &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrblog &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrbasrv &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrbahsrv &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrbroker &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrbvpm &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrbfac &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    wrbdm &
    echo -n "$! " >> $TMP_FILE
    sleep $SLEEP
    stop)
    kill -KILL `cat $TMP_FILE`
    if [[ $? -ne 0 ]]
    then
    echo "Could not stop wrb processes. The PIDs are in"
    echo "$TMP_FILE. If these are running, please"
    echo "stop them manually."
    else
    rm -rf $TMP_FILE
    fi
    echo "Usage: wrb {start|stop}"
    exit 1
    esac
    null

    Hi Erick,
    Your scripts for running the OAS302 on 6.0 linux had been very
    helpful.
    In fact, I dont know what would I have done without them.
    Now I am able to run the listeners and even able to create the
    packages and users in the database via the OAS 3.0.2 but the
    problem starts when accessing a procedure in the database using
    the pl/sql agent. By the way i am using Oracle 8.0.5.1 RDBMS and
    its home is different than the webserver home.
    The browser just does nothing and even does not log any error
    message ,I have to stop it after a while but all my other
    catridges are working.
    any insight will be appreciated.
    thanks,
    Vikram ( Ironically enough I work for Oracle).
    Erik Nielsen (guest) wrote:
    : People have said this doesn't work. It works. It's just the
    : owsctl that doesn't work. I'm not saying that oas302 on RedHat
    6
    : is the best solution anyone could come up with, but it does
    work,
    : and if you want to do it, here are some scripts that you can
    feel
    : free to modify and use as you wish. Various variables should
    be
    : updated with however you system is configured. Remember to
    start
    : the wrb (i.e. the second script) before you start any
    listeners.
    : Linux has a tendency to crash if you don't kill -KILL all the
    wrb
    : processes at the same time (i.e. the kernel gets an uncaught
    : exception and dies).
    : Erik
    : <disclaimer>
    : I do not guarantee these will work. I do not guarantee that
    : they will not destroy something important. I assume no
    liability
    : for what these scripts may or may not do. Use them at your own
    : risk. There is no expressed or implied waranty.
    : </disclaimer>
    : #!/bin/ksh
    : # Script to start the oraweb http servers to listen for
    requests
    : # because owsctl is kind of unpredictable under RedHat 6.0
    : # set this variable to be the directory that the webserver
    : # configuration drivetoryies are under (i.e.
    : # /db/app/oracle/admin/ows/web/httpd_my.host.com)
    : WEB_HOME=/db/app/oracle/admin/ows/web/httpd_my.host.com
    : LISTENER="$2"
    : if [[ -z "$LISTENER" ]]
    : then
    : echo "No listener name to start."
    : echo "Usage: listen {start|stop} listener"
    : echo "e.g.:"
    : echo " listen start admin"
    : exit 1
    : fi
    : case "$1" in
    : start)
    : OMN_ADDR=UDP:worf.gcg.com:2649
    : OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
    : OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
    : OWS_ORAWEB_FREEDOMX=1
    : export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FEEDOMX
    : CFG_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.cfg
    : if [[ -f "$CFG_FILE" ]]
    : then
    : oraweb -C $CFG_FILE
    : else
    : echo "Could not find config file for $LISTENER:"
    : echo " $CFG_FILE"
    : exit 1
    : fi
    : stop)
    : PID_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.pid
    : if [[ -f $PID_FILE ]]
    : then
    : kill `cat $PID_FILE`
    : if [[ $? -ne 0 ]]
    : then
    : echo "Could not stop oraweb $LISTENER process."
    : exit 1
    : fi
    : else
    : echo "Could not find oraweb $LISTENER PID file:"
    : echo " $PID_FILE"
    : exit 1
    : fi
    : echo "Usage: listen {start|stop} listener"
    : echo "e.g.:"
    : echo " listen start admin"
    : exit 1
    : esac
    : #!/bin/ksh
    : # Script to start up the Oracle Web Request Broker (wrb)
    : # processes manually because owsctl doesn't work on RedHat
    : # Linux 6.0
    : TMP_FILE=/tmp/wrb.pids
    : case "$1" in
    : start)
    : SLEEP=3
    : if [[ -f "$TMP_FILE" ]]
    : then
    : echo "$TMP_FILE exits. Make sure the wrb is not
    : already"
    : echo "running, remove $TMP_FILE, and run this script
    : again."
    : exit 1
    : fi
    : if [[ -z "$ORAWEB_HOME" ]]
    : then
    : echo "ORAWEB_HOME is not set. This environment variable"
    : echo "should be set to the directory where the oracle
    was"
    : echo "lives, i.e. /app/oracle/product/8.0.5/ows/3.0"
    : exit 1
    : fi
    : OMN_ADDR=UDP:my.host.com:2649
    : OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
    : OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
    : OWS_ORAWEB_FEEDOMX=1 # I have no idea what this does; I read
    : # about it in a newsgroup. Supposedly
    : # it makes the oas run faster
    : export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FREEDOMX
    : PATH=$ORAWEB_HOME/bin:$PATH
    : mnaddrsrv -D &
    : echo -n "$! " > $TMP_FILE
    : sleep $SLEEP
    : mnrpcnmsrv &
    : echo -n "$! " >> $TMP_FILE
    : mnorbsrv &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrbcfg &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrblog &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrbasrv &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrbahsrv &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrbroker &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrbvpm &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrbfac &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : wrbdm &
    : echo -n "$! " >> $TMP_FILE
    : sleep $SLEEP
    : stop)
    : kill -KILL `cat $TMP_FILE`
    : if [[ $? -ne 0 ]]
    : then
    : echo "Could not stop wrb processes. The PIDs are in"
    : echo "$TMP_FILE. If these are running, please"
    : echo "stop them manually."
    : else
    : rm -rf $TMP_FILE
    : fi
    : echo "Usage: wrb {start|stop}"
    : exit 1
    : esac
    null

  • Best / most popular software or scripts for adding search function to website?

    I'm trying to find a good piece of software or script for implementing a site search function into our website.  I am relatively knowledgeable in Dreamweaver and can write CSS and XHTML at the fairly intermediate to advanced level, as well as work with JavaScript and js files, but I don't really know much ASP or "by hand" Java coding.  Their are so many scripts and software out there for adding a site search that it's hard to sort through and narrow down.  I was hoping to find reviews of the popular ones or "top 10 lists" of some sort that would help me pinpoint a good one, but can't find anything like that.  These are the primary needs of the website:
    --Has under 50 searchable pages that won't change much and probably won't exceed 50. There are product part numbers and descriptions for some 250-300 part numbers, spread across only 24 of those pages.  The remaining pages are important but no part numbers-- About Us, News, Where to Buy, History, Featured Products, etc.  The product pages are very much like an online store but we don't sell directly on the site (only thru distributors/reps).
    --We are trying to keep the price under about $50, or use a free solution
    --The pages are all static XHTML+CSS pages, but our server can run ASP (we have another website for one of our other product line divisions, on the same server, with many more products beyond 1000, which was programmed completely in ASP by an outside company about 4 years ago).  We self-host both sites.
    --Our server can't run PHP
    --The search capabilities need only be rather basic-- a keyword search with a results page that uses the same design template as the rest of the site.  It would be nice, but not mandatory, to have a search filter and/or a drop down menu to enable selectively searching only certain parts of the site, or only product/part number search vs. general search, etc. (but again, not mandatory).
    --I do have a sitemap page already on it, if that matters or helps
    Some of the ones I've found so far that looked the most promising include:  Zoom Search Engine (http://www.wrensoft.com/zoom/), Site Search Pro (http://www.site-search-pro.com/), and FX Site Search which is a DW Extension I found in the exchange (http://www.felixone.it/extensions/prod/mxssen.asp)-- (that one looks possibly technically challenging or requiring more ASP skill, though)
    Forgive me if there is a better area to post this, if so let me know.

    For a static site, your options are:
    Google ~  http://www.google.com/sitesearch/
    Freefind ~ http://www.freefind.com/
    Zoom from Wrensoft ~ http://www.wrensoft.com/zoom/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

Maybe you are looking for

  • Error on bapi_acc_document_post

    Hi experts,      when i executing this bapi_acc_document_post, am getting error  " FI/CO interface: Line item entered several times"  i mention code below  so please give me suggestion. *& Report  ZSAMPLE REPORT  ZSAMPLE. data: BEGIN OF WA_HEADER,   

  • Home Sharing Loading Forever and Windows 8

    So I thought I'd leave this here since I scoured this site via Google for answers and couldn't find anything that helped. I could not get iTunes Home Sharing to work on my Windows 8 PC (64-bit) in the last few months. My AppleTV would just sit there

  • Given an url address how to send a mail?

    Hi, I would like to know the solution to this problem. Given the address eg. [email protected] how to open or enter the mode similar to reply button in hotmail. thank you. I did try this code. Doesn't work. PROCEDURE kr_sendmail( p_mail_subject IN VARC

  • Java.io.FilePermission read error

    I was wondering if anyone can help me or point me to the right direction in terms of accessing a file (Brucella.xml) using an applet. Within my applet.html located in my build folder, I have indicated a dataLocation variable to be passed into the app

  • PLEASE open up iPhone's Calendar & Contacts to Developers

    I have been looking and looking for a good PIM program for my iPhone and NOTHING works without a TON of workarounds! Open up the SDK to utilize the Calendar and Contacts in the iPhone OS PLEASE! One program that encompasses Contacts, Calendar AND ToD