vCenter Orchestrator HTTP API: POST request error 400 1032

I'm trying to start a workflow via a POST request to the vCenter Orchestrator API. When I run the same workflow with a GET request, there is no problem and I get the following result in the localhost_access_log.current_date.txt:

[src_ip_address] - [13/Oct / 2015:04:46:00 + 0000] "GET vco/api/flux/af83cf34-6a00-45b5-946e-0d44ece508bb/exécutions/HTTP/1.1" 200 272

However, when I run a POST with the following parameters:

restMethod: POST

restEndpoint: https://[dest_ip_address]:8281

restPath: / vco/api/workflows/af83cf34 - a 6, 00-45 b 5 - 946e - 0d44ece508bb/executions /

user: [username]

content: {"parameters": [{'name': 'name1', 'type': 'string', 'value': {'chain': {"value": "Value1"}}, 'field': 'local'}]}

contentType: application/json

accept: application/json

I have the following error in localhost_access_log.current_date.txt:

[src_ip_address] - [13/Oct / 2015:03:53:39 + 0000] "POST vco/api/flux/af83cf34-6a00-45b5-946e-0d44ece508bb/exécutions/HTTP/1.1" 400 1032

And the output on the client side:

{Success = no, ResponseHeader = {null = HTTP/1.1 400 Bad Request, Server = Apache-Coyote/1.1 Content-Length = 1032, Content-Language = EN, connection = closed, Date-Wed, 13 Oct 2015 Message = Bad Request, ReasonPhrase is Bad Request, StatusCode = 400}}

I'm in vCenter Orchestrator 5.5. There is no output to the server.log file. I didn't have a chance, researching the 400 1032' error number. [dest_ip_address] is HTTPS. Can anyone help clarify this?

The command line below seems to work for me using the cmd terminal Windows:

curl u - ikv name h ' Accept: application/json ' h ' Content-Type: application/json "d" {\"parameters\":[{\"value\":{\"string\":{\"value\":\"value1\"}},\"type\":\"string\",\"name\":\"name1\",\"scope\":\"local\" "}]}" x POST https://ip_address:8281/vco/api / stream/af83cf34-6a00-45b5-946e-0d44ece508bb/executions

Note that the double quotes inside the body of the request are preceded by the backslash character.

Tags: VMware

Similar Questions

  • Cannot register or update of server vCenter vCenter Orchestrator on extension

    All hell, we could not register or update of server vCenter vCenter Orchestrator on extension. Common error occurs when try add a vCenter, com.vmware.vim.vmomi.client.exception.InternalException: "ServiceInstance" thrown exception unexpected "java.net.UnknownHostException" with message of managed objects ' new virtual Center host: name or service not known not ' when calling method "getContent" - Suresh

    Issue slipped after re-entry vCenter and SINGLE authentication certificate. -Suresh

  • Interaction with OpsCode Chef HTTP vCenter Orchestrator v5.1 Update 1 REST API

    Interaction with OpsCode Chef HTTP vCenter Orchestrator v5.1 Update 1 REST API

    I need to be able to use the HTTP REST APIs to run commands on the server of leader during the commissioning and decommissioning of virtual machines.

    Chef Server API Documents

    This requires the ability to use the SHA1 algorithm and also the Base64 algorithm in vCenter Orchestrator v5.1 update 1 to create the header of hashes.

    Method: HTTP_METHOD

    Axes of path: HASHED_PATH

    X Ops-content-Hash: HASHED_BODY

    X Ops - Timestamp:TIME

    X Ops - UserId:USERID

    where:

    • HTTP_METHOD is the method used in the API request (GET, POST, and so on)
    • HASHED_PATH is the path of the query (/name_of_endpoint for the server open source) and/organizations/organization_name/name_of_endpoint took the head or private Chef. The HASHED_PATH must be hashed with SHA1 and encoded using Base64 and should not have repeated oblique (/) or end with a bar slash (unless the path is /).
    • The private key must be an RSA key in the SSL .pem file format. This signature is then divided into strings (of not more than 60 characters per line) and placed in the header.

    The server of crypts that header and ensures its content corresponds to the content of unencrypted headers contained in the request. The timestamp of the message is checked to ensure that the request has been received within a reasonable time. An approach to generate the signed headers is to use the authentication mixlib, which is a header based on a class signature of authentication object similar to one used by the Chief customer.

    Any help with this would be greatly appreciated.

    Perfect timing!  I was just finalized this week the docs and test of a package for the Chef Server API:

    CHIEF Server Workflows

    Let me know how it works for you!  Of more if there are other points of termination or I missed scenarios, they should be easy to add.

  • I can't post a temporary site in catalyst for business. It stops and it appears: Internal Error 400 Bad Request (117007)

    I can't post a temporary site in catalyst for business. It stops and it appears: Internal Error 400 Bad Request (117007)

    Hello

    Have one inserted a form Widget into Muse.

    Please ensure that the email entered by you is correct email format in the field "Email to" Option form.

    Link below had the similar problem.

    Muse Publishing Error

    Concerning

    Vivek

  • In bulk 2.0 API: wrong error 400 "field syncedInstanceUri is required.

    I send a POST request to the endpoint /syncs to request an export job status. I'm including the "syncedInstanceUri" field in the query JSON as specified in the documentation, but I'm to return a 400 response saying that the 'syncedInstanceUri' field is required, which means that I do not understand it.

    Help, please. Thank you!

    Jan 26, 2016 8:28:07 AM org.glassfish.jersey.filter.LoggingFilter log
    INFO: 2 * Sending client request on thread main
    2 > POST https://secure.p02.eloqua.com/api/bulk/2.0/syncs
    2 > Content-Type: application/json
    {
      "syncedInstanceUri" : "/contacts/exports/16"
    }
    
    
    Jan 26, 2016 8:28:07 AM org.glassfish.jersey.filter.LoggingFilter log
    INFO: 2 * Client response received on thread main
    2 < 400
    2 < Cache-Control: private
    2 < Content-Length: 76
    2 < Content-Type: application/json; charset=utf-8
    2 < Date: Tue, 26 Jan 2016 13:28:06 GMT
    2 < P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",
    2 < X-Request-Id: e048d12186744ccbafa08ecc67b663a9/49677006
    {
    "failures":[{"field":"syncedInstanceUri","constraint":"Is required."}]}
    
    

    Here is another example of the question with another endpoint (exports/contacts /):

    Jan 26, 2016 4:22:44 PM org.glassfish.jersey.filter.LoggingFilter log
    INFO: 1 * Sending client request on thread main
    1 > POST https://secure.p02.eloqua.com/api/bulk/2.0/contacts/exports
    1 > Accept: application/json
    1 > Content-Type: application/json
    {"name":"Contacts Export","fields":{"id":"{{Contact.Id}}"}}
    
    
    Jan 26, 2016 4:22:44 PM org.glassfish.jersey.filter.LoggingFilter log
    INFO: 1 * Client response received on thread main
    1 < 400
    1 < Cache-Control: private
    1 < Content-Length: 175
    1 < Content-Type: application/json; charset=utf-8
    1 < Date: Tue, 26 Jan 2016 21:22:44 GMT
    1 < P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",
    1 < X-Request-Id: 49af0b10bca84912bc7a0693484afb5d/49850445
    {
    "failures":[{"field":"name","constraint":"Must be a string value, at least 1 character and at most 100 characters long."},{"field":"fields","constraint":"Is required."}]}
    

    I've enabled logging for debugging at a lower level (Apache HttpClient) and noticed the HTTP requests were chunked transfer encoded. On a hunch, I tried to disable the segmentation, and of course, everything worked. So, it seems that the underlying HTTP server for the 2.0 API in bulk doesn't handle chunked requests.

    For the benefit of other users of Java/Jersey, here's how to disable the segmentation in Jersey 2.x:

    ClientConfig clientConfig = new ClientConfig();
    clientConfig.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.BUFFERED);
    Client client = ClientBuilder.newClient(clientConfig);
    
  • Help with JSON HTTP Post request

    Still fairly new to QT so I try to send a query with some json http post, I'm pulling the json to a file and which seems to work fine but I get a http 500 error. I want to just make sure that my code is correct before contacting the company that webservice I use here is my code:

     JsonDataAccess jda;
        QVariant list = jda.load(QDir::currentPath() +"/app/native/assets/jsonData/myjson.json");
    
        qDebug()<post(request, list.toByteArray());
    

    I have a feeling that I'm passing in json data in the wrong post method. Any help is appreicated

    Hello

    You send an empty server string because list.toByteArray () returns an empty string.

    You must save the QByteArray list;

    QByteArray result;
    jda.saveToBuffer(list, &result);
    
    // and then
    
    QNetworkReply *reply = networkAccessManager->post(request, result);
    

    or

    Simply load the json with QFile file

    QFile file(YOUR_JSON);
    if (!file.open(QIODevice::ReadOnly)){
        qDebug() << Q_FUNC_INFO << file.errorString();
        return;
    }
    QByteArray result = file.readAll();
    file.close()
    
    QNetworkReply *reply = networkAccessManager->post(request, result);
    

    Hoe it helps

  • Internal error trying to add vCenter Orchestrator Endpoint

    Hi team,

    I am trying to configure vCAC 6.0 using the inbult Orchestrator 5.5.1 However when I try to add the vCO by accessing Home > Administration > Services Advacned > endpoints and click on the + adds vCenter Orchestrator plug-ins such as endpoints so that you can create service plans with Advanced Services Designer and publish the workflow as catalog items. I get the following error:

    Internal error

    An internal error has occurred. If the problem persists, contact your system administrator.
    When you contact your system administrator, use this reference: d6c92026

    I tried to connect to vCO by using the following accounts, but this has not helped to solve the problem:

    [email protected]

    [email protected]

    It seems to me that the error is always flagged only when I try to run the task above. Can someone please help me solve this problem?

    Thank you

    Arun-

    https://Twitter.com/arunpande

    http://highoncloud.blogspot.in/

    Virtualization VMware on NetApp

    8281 is the correct port. Probably, you must use Basic authentication and insert the credentials of the user that you use to sign in to the vCO client.

  • view vCenter Orchestrator inventory shows the error for vCenter plug-in.

    1892991.png

    I put the username correctly without domain name in the tab of the connection properties of the Orchestrator, KB article: http://kb.vmware.com/kb/1017516.

    I use the self-signed certificates that are generated during the installation of the vCenter Orchestrator.

    Please help me solve this problem

    -AnuragR

    It is the very generic error message. If you look in the server.log - vco server log file you will find more specific error information. If it is not confidential you can contact here I can take a look.

    Daniel

  • When I try and publish a site of Muse, get the error: internal error: 400 Bad request. (117007)

    When I try and publish a site of Muse, getting this error:

    Error: Internal error: 400 Bad request. (117007)

    And this isn't to let me publish the site

    Found a similar position that could provide some indication error of publication of Muse

  • 4.1 Data Migration tool - "error: failure of the backup of the configuration of the vCenter Orchestrator.

    While following this KB article, I came across an error.  I googled a bit but it is really not a lot on that.  This process took me the better part of a month to get to this day.  Now all I have to do is migrate my databases and settings...  However, as with everything else I came against from 4.0 to 4.1 (and building a new server to do), nothing seems to be going my way with this project.

    Anyway, I executed the script of backup.bat several times and each time, it failed in the same place.  The error given is "error: failure of the backup of the configuration of the vCenter Orchestrator."  The log file has been attached.  I rebooted, made sure that all VMware services have been arrested and still no joy.

    Any help would be great!  If this isn't the case, I'll have to make another call to the support team.  I played with VMware products for years and I've never had to call until this project came.  In this month alone, I opened 4 tickets!

    2010-09-24

    0723 EDT

    I'm almost certain that this can be ignored without risk, especially if you do not use Orchestrator.  I recently made a 4.1 migration to another server and got the same error - I had any issues at all.

  • Internal error: 400 Bad request. (115000)

    I can't download to publish. According to the old notes (forum Adobe Muse of 2012), this error was caused by long labels in a custom form field. All this body of text for the boxes is in the area of the label.

    I'll make the shape, but is there anything else it would cause? My version 2014.3 should have this problem according to the notes I've read online,

    Screen Shot 2016-03-11 at 2.11.08 PM.png

    Hi anita1390,

    The form label that you have on your site is currently limited to 255 characters in Business catalyst to publish successfully. Normally, this value is truncated to 255 characters by Muse before publishing in British Colombia, however, this exposed another bug, where Muse was truncated to 255 characters and catalyst for business checks to see if the number of characters is less than 255 (which allows a maximum of 254), causes the error 400.

    Workaround for this problem will reduce this form of 254 characters label field or less and we are working on fixing this bug on end of Muse, where it truncates the number of characters incorrectly. Could you please limit the label to form less than 254 characters (including spaces and carriage return characters) and let me know if you still see the error 400 on the catalyst of the publishing business.

    Thank you

    Prashanth

  • Import a workflow with Orchestrator rest API

    Hello

    I am trying to import a workflow to Orchestrator through the REST API, but it always end upward with a 500 error:

    HTTP/1.1 100 continue
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/html; charset = utf-8
    Transfer-Encoding: segmented
    Date: Thu, February 28, 2013 16:54:57 GMT
    Connection: close
    Server: vCO Server
    I proceed in this way:
    I prepare the file that will be sent:

    -5bf10fbcf09

    Content-Disposition: form-data; name = "listVm"; filename = "listVm.Workflow"

    Content-Type: application/zip

    Binary

    -5bf10fbcf09-

    and then make a POST request to my server of vCO:
    curl - ik u "user: pass" h "Accept: application / xml ' h ' Content-type: multipart / form - data; "limit = - 5bf10fbcf09 ' h ' content-length: 19442 ' https://IP:PORT/api/stream / x POST @listVm.wf d
    Then it'll wait state:
    HTTP/1.1 100 continue
    and about 60 years later it returns me an error 500
    Thanks for your help!

    Here is a code that a workflow is important in a category:

    SessionFactory VcoSessionFactory = new DefaultVcoSessionFactory (new URI ("https://vcohost:8281 / api")) {}
    @Override
    protected SSLContext newSSLContext() throw KeyManagementException, {NoSuchAlgorithmException}
    Return newUnsecureSSLContext();
    }
    @Override
    protected HostnameVerifier {} newHostnameVerifier()
    Return newUnsecureHostnameVerifier();
    }
    };
    This is for basic authentication in the what the vCO is in LDAP mode
    Authentication Authentication = new UsernamePasswordAuthentication ("userName", "password");
    It is to the SSO authentication
    Authentication Authentication = null;
    try {}
    SsoAuthenticator authenticator =
    new SsoAuthenticator (new
    1800 l);
    Authentication =
    authenticator.createSsoAuthentication ("userName",
    "password");
    } catch (IOException e) {}
    throw new RuntimeException ("Cannot authenticate to the OSP", e);
    } catch (URISyntaxException e) {}
    / / There are unlikely to occur
    // }
    Session VcoSession = sessionFactory.newSession (authentication);
    WorkflowService wfService = new WorkflowService (session);
    wfService.importWorkflowInCategory ("categoryId", new file)
    'path_to_some_workflow.workflow'));

    I have this code I use only the customer is provided with vCO:

    https://vcohost:8281/API/docs/downloads.html

    Hope this helps

    Concerning

    Ivan

  • Http method Post is not working in the Simulator (SDK 7.0) and not in the device with BB 5.0

    I am a novice in the development of BB.

    I tried to implement a simple Http Post request, but when running it in the Simulator (SDK 7.0), he gave an IOException.

    I've first implemented the Http Get request and was getting the same error but that was resolved by adding "; deviceSide = true'on demand.

    But while making the Post request parameters(username and password) were supposed to be written to outputstream open after successfully HttpConnection. I get the answer I used to get when I send two parameters as null.

    But the app even when built against JRE 5.0 crashes.

    Hi simon, peter

    I made changes to my connection as as well as u say it, but still no idea if I am wrong, if I do one.

    Now without using any suffix his run on my device but same answer as it was a GET request.

    A modified version of class ServerConnection (in post above)

    package com.httppostdemo.classes;
    
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    import javax.microedition.io.HttpConnection;
    
    import net.rim.device.api.io.transport.ConnectionDescriptor;
    import net.rim.device.api.io.transport.ConnectionFactory;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Dialog;
    
    public class HttpPostConnection extends Thread {
    
        private String mUrl = null;
        private byte[] mParams = null;
    
        public HttpPostConnection(String iUrl, byte[] iParams) {
            mUrl = iUrl;
            mParams = iParams;
        }
    
        public void run() {
            super.run();
            ConnectionFactory connectionFactory = new ConnectionFactory();
            ConnectionDescriptor connDescriptor = (ConnectionDescriptor) connectionFactory
                    .getConnection(mUrl);
            HttpConnection connection;
            OutputStream outStream;
            InputStream responseData;
            final ByteArrayOutputStream baos;
            int responseCode;
            int bytesRead;
    
            if (connDescriptor != null) {
                try {
    
                    connection = (HttpConnection) connDescriptor.getConnection();
                    connection.setRequestMethod(HttpConnection.POST);
                    connection.setRequestProperty("Content-Type",
                            "application/xwww-form-urlencoded");
                    connection.setRequestProperty("Content-Length",
                            String.valueOf(mParams.length));
    
                    outStream = connection.openOutputStream();
                    outStream.write(mParams);
                    outStream.close();
    
                    responseCode = connection.getResponseCode();
                    if (responseCode != HttpConnection.HTTP_OK) {
                        connection.close();
                        return;
                    }
    
                    baos = new ByteArrayOutputStream();
                    responseData = connection.openInputStream();
                    byte[] buffer = new byte[10000];
                    bytesRead = responseData.read(buffer);
                    while (bytesRead > 0) {
                        baos.write(buffer, 0, bytesRead);
                        bytesRead = responseData.read(buffer);
                    }
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            Dialog.alert(new String(baos.toByteArray()));
                        }
                    });
                    baos.close();
                    connection.close();
    
                } catch (final Exception e) {
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            Dialog.alert("Exception :: " + e.getMessage());
                        }
                    });
                }
    
            }
        }
    
    }
    
  • Configure Apache HTTP Srvr for WLS12c error - "address already in use: make_sock: could not bind to address 80.

    Hello the Experts of Oracle.

    I already have

    1. installed the Apache HTTP Server (with libraries)
    2. Downloaded the Plugin of Apache WLS12c
    3. copied the plugin files into the appropriate directories.
    4. Modify the httpd.conf (see below)

    At the present time, I try to start the Apache HTTP server and runs in an unexpected error.

    WHY APACHE ATTEMPTS TO LISTEN ON PORT 80. ?  I've SPECIFIED the PORT 8888

    Question: How to go beyond the error.   -| "Address already in use: make_sock: could not bind to address 80 '

    My server is 192.168.1.21.  In my view, that it has ESTABLISHED processes.  Yet, he reports, that it cannot start.

    junk1.PNG

    Here is the content of the httpd.conf file.  My customizations are in Red.

    #

    # This is the main Apache HTTP server configuration file.  It contains the

    configuration directives # that give the server its instructions.

    See # < URL: http://httpd.Apache.org/docs/2.4/ > for more information.

    # See especially

    # < URL: http://httpd.Apache.org/docs/2.4/mod/directives.html >

    # for an analysis of each configuration directive.

    #

    # Do NOT simply read the instructions here without understanding

    # what they do.  They are there only as advice or reminders.  If you do not know

    # consult the online documentation. You have been warned.

    #

    # Configuration and logfile names: If the file names that you specify for a lot

    number of files in server control begin by "/" (or "drive: / 'for Win32 '), the

    # server uses this explicit path.  If filenames do * not * start

    # with "/", the value of ServerRoot directive is preceded by - both "logs/access_log".

    # with ServerRoot set to "/ usr/local/apache2" will be interpreted by the

    # Server as "/ usr/local/apache2/logs/access_log", considering that "/ logs/access_log".

    # will be interpreted as "/ logs/access_log".

    #

    # ServerRoot: The top of the directory under which the server tree

    # configuration, error and the log files are kept.

    #

    # Do not add a bar slash at the end of the directory path.  If you point

    # ServerRoot to non-local disk, remember to choose a local drive on the

    # Directive Mutex, if based on mutex files are used.  If you want to share the

    # ServerRoot even for several demons httpd, you will need to change to

    # PidFile less.

    #

    ServerRoot "/ usr/local/apache2.

    #

    # PidFile: The file in which the server should record its process

    ID # when it starts.

    #

    PidFile ' / usr/local/apache2/logs/httpd.pid '.

    #

    # Mutex: Allows you to set the mutex mechanism and the mutex file directory

    # for individual mutex, or change the default global values

    #

    # Uncomment and change the directory if mutexes are based on files and the default

    # mutex file directory is not on a local disk or is not suitable for some

    # other reason.

    #

    # Default Mutex: newspapers

    #

    # Listen: Allows you to bind Apache to specific IP addresses and/or

    ports #, instead of the default value. See also the < VirtualHost >

    directive #.

    #

    # Change this to listen on specific IP addresses below for

    # prevent Apache glomming on all related IP addresses.

    #

    # Example-> look 12.34.56.78:80

    # Listen api.astcorporation.com:8001

    Listen 8888

    #

    # Dynamic Shared Object (DSO) Support

    #

    # To be able to use the features of a module that was built as a DSO you

    # duty place corresponding 'LoadModule' lines at this location until the

    # directives that it contained are actually available _avant_, that they are used.

    # Modules statically compiled (those listed by "httpd-l") is not necessary

    # to be responsible here.

    #

    # Example:

    # LoadModule foo_module modules/mod_foo.so

    #

    LoadModule authn_file_module modules/mod_authn_file.so

    #LoadModule authn_dbm_module modules/mod_authn_dbm.so

    #LoadModule authn_anon_module modules/mod_authn_anon.so

    #LoadModule authn_dbd_module modules/mod_authn_dbd.so

    #LoadModule authn_socache_module modules/mod_authn_socache.so

    LoadModule modules/mod_authn_core.so authn_core_module

    LoadModule modules/mod_authz_host.so authz_host_module

    LoadModule modules/mod_authz_groupfile.so authz_groupfile_module

    LoadModule modules/mod_authz_user.so authz_user_module

    #LoadModule authz_dbm_module modules/mod_authz_dbm.so

    #LoadModule authz_owner_module modules/mod_authz_owner.so

    #LoadModule authz_dbd_module modules/mod_authz_dbd.so

    LoadModule modules/mod_authz_core.so authz_core_module

    LoadModule modules/mod_access_compat.so access_compat_module

    LoadModule auth_basic_module modules/mod_auth_basic.so

    #LoadModule auth_form_module modules/mod_auth_form.so

    #LoadModule auth_digest_module modules/mod_auth_digest.so

    #LoadModule allowmethods_module modules/mod_allowmethods.so

    #LoadModule file_cache_module modules/mod_file_cache.so

    #LoadModule cache_module modules/mod_cache.so

    #LoadModule disk_cache_module modules/mod_cache_disk.so

    #LoadModule cache_socache_module modules/mod_cache_socache.so

    #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

    #LoadModule socache_dbm_module modules/mod_socache_dbm.so

    #LoadModule socache_memcache_module modules/mod_socache_memcache.so

    #LoadModule macro_module modules/mod_macro.so

    #LoadModule dbd_module modules/mod_dbd.so

    #LoadModule dumpio_module modules/mod_dumpio.so

    #LoadModule buffer_module modules/mod_buffer.so

    #LoadModule ratelimit_module modules/mod_ratelimit.so

    LoadModule modules/mod_reqtimeout.so reqtimeout_module

    #LoadModule ext_filter_module modules/mod_ext_filter.so

    Request_module modules/mod_request.so #LoadModule

    #LoadModule include_module modules/mod_include.so

    LoadModule modules/mod_filter.so filter_module

    #LoadModule substitute_module modules/mod_substitute.so

    #LoadModule sed_module modules/mod_sed.so

    Modules/mod_deflate.so deflate_module #LoadModule

    LoadModule mime_module modules/mod_mime.so

    LoadModule log_config_module modules/mod_log_config.so

    #LoadModule log_debug_module modules/mod_log_debug.so

    #LoadModule logio_module modules/mod_logio.so

    LoadModule env_module modules/mod_env.so

    #LoadModule modules/mod_expires.so expires_module

    LoadModule headers_module modules/mod_headers.so

    #LoadModule unique_id_module modules/mod_unique_id.so

    LoadModule setenvif_module modules/mod_setenvif.so

    LoadModule modules/mod_version.so version_module

    #LoadModule remoteip_module modules/mod_remoteip.so

    #LoadModule modules/mod_proxy.so proxy_module

    Modules/mod_proxy_connect.so proxy_connect_module #LoadModule

    Proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule

    Modules/mod_proxy_http.so proxy_http_module #LoadModule

    #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so

    #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so

    #LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

    Proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule

    #LoadModule proxy_express_module modules/mod_proxy_express.so

    #LoadModule session_module modules/mod_session.so

    #LoadModule session_cookie_module modules/mod_session_cookie.so

    #LoadModule session_dbd_module modules/mod_session_dbd.so

    #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so

    #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so

    #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so

    #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so

    #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so

    LoadModule modules/mod_unixd.so unixd_module

    #LoadModule dav_module modules/mod_dav.so

    LoadModule status_module modules/mod_status.so

    LoadModule autoindex_module modules/mod_autoindex.so

    #LoadModule info_module modules/mod_info.so

    #LoadModule cgid_module modules/mod_cgid.so

    #LoadModule dav_fs_module modules/mod_dav_fs.so

    #LoadModule vhost_alias_module modules/mod_vhost_alias.so

    #LoadModule modules/mod_negotiation.so negotiation_module

    LoadModule modules/mod_dir.so dir_module

    #LoadModule actions_module modules/mod_actions.so

    Modules/mod_speling.so speling_module #LoadModule

    #LoadModule userdir_module modules/mod_userdir.so

    LoadModule alias_module modules/mod_alias.so

    #LoadModule rewrite_module modules/mod_rewrite.so

    # Added on 23/09/2015 | -enabling reverse proxy requests for users of WLS12c

    LoadModule modules/mod_wl_24.so weblogic_module

    < IfModule unixd_module >

    #

    # If you want httpd to run as a different user or group, you must run

    # httpd as root initially and it will pass.

    #

    # Group / user: the name (or #number) of the user/group to run httpd as.

    # It is generally advisable to create a dedicated and aggregatable for user

    # httpd, as with most system services are running.

    #

    Demon of the user

    Daemon group

    < / IfModule >

    Server configuration # 'hand '.

    #

    # The directives in this section implement the values used by the 'hand '.

    # Server, which meets all demands that are not managed by a

    definition of # < VirtualHost >.  These values also provide defaults for

    # all < VirtualHost > containers you can set later in the file.

    #

    # All these directives may appear inside containers < VirtualHost >,.

    # in which case the value default parameters will be substituted for the

    virtual host of # being defined.

    #

    #

    # ServerAdmin: Your address, where problems with the server should be

    # e-mail.  This address appears on some generated by the page server, such

    # as error documents.  for example [email protected]

    #

    ServerAdmin [email protected]

    #

    # ServerName gives the name and the port used by the server to identify itself.

    # This can often be determined automatically, but we recommend that you specify

    # explicitly to avoid problems during startup.

    #

    # If your host doesn't have a registered DNS name, enter its IP address here.

    #

    Servername 192.168.1.21

    #

    # Deny access to the whole of the file system of your server. You must

    # explicitly allow access to web content directories in other

    blocks of # < directory > below.

    #

    < directory / >

    AllowOverride none

    Need all refused

    < / Book >

    #

    # Note that, from this point forward you must precisely enable

    features special # to be enabled - so if something doesn't work not as

    # you might expect, make sure that you have specifically enabled it

    # below.

    #

    #

    # DocumentRoot: The directory you are going to use your

    documents #. By default, all requests are taken from this directory, but

    aliases and symlinks # can be used to point to other locations.

    #

    DocumentRoot "/ usr/local/apache2/htdocs.

    < directory "/ usr/local/apache2/htdocs" >

    #

    # Possible values for the Options directive are "None", "All."

    # or any combination of:

    # Indexes includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

    #

    # Note that "MultiViews" must be named * explicitly *-'all Options '.

    # is not give it to you.

    #

    # The Options directive is complex and important.  Please see

        # http://httpd.Apache.org/docs/2.4/mod/core.HTML#options

    # For more information.

    #

    Options Indexes FollowSymLinks

    #

    # AllowOverride controls what directives may be placed in .htaccess files.

    # It can be 'All', 'None', or any combination of key words:

    # AllowOverride FileInfo AuthConfig Limit

    #

    AllowOverride None

    #

    # Controls who can get stuff from this server.

    #

    Need of all granted

    < / Book >

    #

    # DirectoryIndex: sets the file Apache will serve if a directory

    # is requested.

    #

    < IfModule dir_module >

    DirectoryIndex index.html

    < / IfModule >

    #

    # The following lines prevent the .htaccess and .htpasswd files to be

    # seen by customers of the Web.

    #

    < files ".ht *" >

    Need all refused

    < / files >

    #

    # ErrorLog: The location of the error log file.

    # If you do not specify an ErrorLog directive in a < VirtualHost >

    # container, error messages related to this virtual host will be

    # logged here.  If you * define an error for a < VirtualHost > log file

    container of #, that host errors will be logged there and not here.

    #

    ErrorLog "logs/error_log".

    #

    # LogLevel: Control the number of messages in the error_log.

    # Possible values include: debug, info, notice, warn, error, crit,.

    # emerg, alert.

    #

    LogLevel debug

    < IfModule log_config_module >

    #

    # The following directives define some nicknames format for use with

    # a directive CustomLog (see below).

    #

    "LogFormat '%%u %t \"%r\ hour' % > s \"%{Referer}i\ %b" \"%{User-Agent}i\" "handset"

    "LogFormat '%%u %t \"%r\ hour' % > s %b "commune

    < IfModule logio_module >

    # You must enable mod_logio.c use %I and frequency

    "" LogFormat '%%u %t \"%r\ hour' % > s %b \"%{Referer}i\ "\"%{User-Agent}i\ "%I %o "combinedio

    < / IfModule >

    #

    # The location and format of the access (Common Log Format) log file.

    # If you do not have any logfiles access set in a < VirtualHost >

    container of #, they will be saved here.  On the other hand, if you * do *.

    # define per - < VirtualHost > access logfiles, transactions will be

    # logged there and * not * in this file.

    #

    CustomLog "logs/access_log" common

    #

    # If you prefer a log file of access, agent, and referer information

    # (Combined logfile format) you can use the following directive.

    #

    #CustomLog "logs/access_log" combined

    < / IfModule >

    < IfModule alias_module >

    #

    # Redirect: Allows to tell clients the documents used for

    # exist in your server's namespace, but no more. The customer

    # make a new request for the document at its new location.

    # Example:

    # Redirect permanent/foo http://www.example.com/bar

    #

    # Alias: Maps web paths into paths of file system and is used to

    # access content that don't live under the DocumentRoot directive.

    # Example:

    # Alias /webpath/full/filesystem/path

    #

    # If you include a trailing / on /webpath, then the server will be

    # require that he be present in the URL.  It is also likely that

    # duty provide a < Directory > section to allow access to

    # the path to the file system.

    #

    # ScriptAlias: This controls which directories contain server scripts.

    # ScriptAliases are essentially the same as assumed names, except that

    # documents in the target directory are treated as applications and

    # executed by the server on demand, rather than as documents sent to the

    client of #.  The same regulation on flight "/" applies to the ScriptAlias

    # as for the Alias directives.

    #

    ScriptAlias/cgi-bin / "/ usr/local/apache2/cgi-bin /".

    < / IfModule >

    < IfModule cgid_module >

    #

    # ScriptSock: On threaded servers, refers to the access path to the UNIX

    decision # used to communicate with the CGI mod_cgid daemon.

    #

    #Scriptsock cgisock

    < / IfModule >

    #

    # "/ usr/local/apache2/cgi-bin" just need to replace your ScriptAlias

    # CGI directory exists, if you have set up.

    #

    < directory "/ usr/local/apache2/cgi-bin" >

    AllowOverride None

    None of the options

    Need of all granted

    < / Book >

    < IfModule mime_module >

    #

    # TypesConfig points to the file containing the list of mappings from

    # MIME file extension - type.

    #

    TypesConfig conf/mime.types

    #

    # AddType allows you to add or replace the MIME configuration

    # the file specified in TypesConfig for specific file types.

    #

    #AddType application/x-gzip .tgz

    #

    # AddEncoding allows you to have certain browsers uncompress

    # information on the fly. Note: Not all browsers support this.

    #

    #AddEncoding x-compress. Z

    #AddEncoding x-gzip .gz .tgz

    #

    # If the AddEncoding directives above are commented out, then you

    # should probably define these extensions to indicate media types:

    #

    AddType application/x-compress. Z

    AddType application/x-gzip .gz .tgz

    #

    # AddHandler allows you to map certain "manipulators": file extensions

    # No actions associated with the file type. It can be either integrated into the server

    # or added to the directive of the Action (see below)

    #

    # To use CGI outside of ScriptAlias directories scripts:

    # (You will also need to add "ExecCGI" to the "Options" directive.)

    #

    #AddHandler cgi-script .cgi

    # For maps of type (negotiated resources):

    #AddHandler type-plan of the var

    #

    # Filters allow you to process content before sending it to the client.

    #

    # To parse .shtml for server-side includes (SSI) files:

    # (You will also need to add "Includes" the "Options" directive.)

    #

    #AddType text/html .shtml

    #AddOutputFilter INCLUDES .shtml

    < / IfModule >

    #

    # The mod_mime_magic module allows the server to use various boards of the

    content of the file itself to determine its type.  The MIMEMagicFile

    # directive tells the module where the definitions of suspicion.

    #

    #MIMEMagicFile conf/magic

    #

    # Customizable error responses come in three flavors:

    ((# 1) text 2) local redirects 3) external redirects

    #

    # Examples:

    #Error Document 500 "The server made a boo boo".

    #Error Document 404 Missing.html

    #Error Document 404 "/cgi-bin/missing_handler.pl"

    #Errordocument 402 http://www.example.com/subscription_info.html

    #

    #

    # MaxRanges: Number of channels in a Maximum request before

    # return the resource, or one of the extraordinary

    # values 'default', 'none' or 'unlimited '.

    # Default is to accept 200 beaches.

    Unlimited #MaxRanges

    #

    # EnableMMAP and EnableSendfile: on systems that support.

    projection in memory # or the sendfile syscall can be used to deliver

    # files.  Usually, this improves the performance of the server, but must

    # turn off when mounted network is served

    # file systems or if support for these functions is also

    # broken on your system.

    # Default: EnableMMAP, EnableSendfile Off

    #

    #EnableMMAP off

    #EnableSendfile on

    # Additional configuration

    #

    # The configuration files in the conf/extra/directory can be

    # included to add additional features or change the default configuration

    # the server, or you can simply copy their content here and change as

    # necessary.

    # Server-pool management (MPM specific)

    #Include conf/extra/httpd-mpm.conf

    # Multilingual error messages

    #Include conf/extra/httpd-multilang-errordoc.conf

    # Entries to the fancy directory

    #Include conf/extra/httpd-autoindex.conf

    # Language settings

    #Include conf/extra/httpd-languages.conf

    # User directories

    #Include conf/extra/httpd-userdir.conf

    # Info in real time on the applications and configuration

    #Include conf/extra/httpd-info.conf

    # Virtual hosts

    #Include conf/extra/httpd-vhosts.conf

    # Local access to the manual for the Apache HTTP Server

    #Include conf/extra/httpd-manual.conf

    # Distributed authoring and versioning (WebDAV)

    #Include conf/extra/httpd-dav.conf

    # Various default settings

    #Include conf/extra/httpd-default.conf

    # Configure mod_proxy_html to understand HTML4/XHTML1

    < IfModule proxy_html_module >

    Include the conf/extra/proxy-html.conf

    < / IfModule >

    # Secure connections (SSL/TLS)

    #Include conf/extra/httpd-ssl.conf

    #

    # Note: The following text should be present to support

    # start without SSL on platforms without equivalent/dev/random

    but # a statically compiled in mod_ssl.

    #

    < IfModule ssl_module >

    SSLRandomSeed startup builtin

    SSLRandomSeed connect builtin

    < / IfModule >

    #

    # Uncomment on the below to deal with user agents that deliberately

    # violate open standards by abusing DNT (DNT * must * be a specific)

    choice of end-users #)

    #

    # < IfModule setenvif_module >

    #BrowserMatch "MSIE 10.0"; bad_DNT

    # < / IfModule >

    # < IfModule headers_module >

    #RequestHeader unset DNT env = bad_DNT

    # < / IfModule >

    #= WLS 12 c routing Configuration. Seven 2015 =.

    # Added to fix the mistakes of transport of myAST resulting from the use of deprecated SSL 2.0 Mobile Security.

    # The following has been added to activate the reverse proxy requests from users of WLS 12 c-based applications.

    #-8002 port = SSL listener for api.astcorporation.com (managed server)

    # - the port 443 = SSL listener for myast.astcorporation.com (managed server)

    #

    # Phases of deployment:

    API.astcorporation.com:8001/myast # (1).

    # VirtualHost (2) Setup / WeblogicCluster guidelines to register myast.astcorporation.com:443

    # 3-test api & myast

    # 4-regenerate private certificate + all certificates.

    # Minimum nonclustered directive specifies WebLogic IP + port.

    < IfModule mod_weblogic.c >

    WebLogicHost 192.168.1.43

    WebLogicPort 8002

    Debugging now

    DebugConfigInfo WE

    Newspapers/myAst12c_WLS_error_log WLLogFile

    WLS-JSESSION-ID WLCookieName

    < / IfModule >

    # Proxy request per path Note: SetHandler specifies the handler for the plug-in module for the Apache HTTP Server

    < /myast location >

    SetHandler weblogic-Manager

    ErrorPage http://www.astcorporation.com/services/middleware/Middleware_Services.html

    < / location >

    # Added proxy

    ProxyPreserveHost off

    #ProxyPass /api http://API.astcorporation.com:8001 / myast

    #ProxyPass /myast http://myast.astcorporation.com

    I found my answer after I posted.  I'll leave it here to help others...

    The list of all instances of Apache that were started

    • ' ps - ef | grep apache. "

    Kill the persistent process

  • Help with utl_http and https API

    Hi all
    I am trying to write a pl/sql procedure to call the google translate API. I paid for a key and the url itself works without any problem, but I'm fighting to get my call from pl/sql.

    I created a function on my server as suggested by Billy Verreynne here: Re: error on HTTPS using UTL_HTTP

    It was extremely helpful as I can now see the url that goes to google.

    This is the code I use to call the function of Billy is:
    set serveroutput ON
    select * from TABLE(webbrowser('https://www.googleapis.com/language/translate/v2?key=mykeyblahblah&q=Automobile&source=en&target=ja')); 
    (1) my first question: Why am I get invited to enter variable bind by sqldeveloper? These are hard-coded in the url, I'm passing, so I don't know why I get invited to these.

    By Billy function, which is getting sent to google:
    HTTP: GET https://www.googleapis.com/language/translate/v2?key=mykeyblahblahAutomobile=Automobileen=enja=ja
    I'm getting ORA-29268: error the client HTTP 400 - Bad request, obviously from the url get passed to google makes no sense, i.e. the ampersands are get and removed the bind variable I entered replace the names of the parameters.

    (2) so my second question, what am I doing wrong and how can I get the URL to keep signs and identifiers in parameters?

    The first thing that is obvious is that I have a lot to learn here. There seems to be that many tutorials online to UTL_HTTP and even the docs of Oracle are a little sparse.

    For what it's worth my portfolio is ok and the proxy are set that correctly, so I know I'm getting to google, I'm just passing through a bad url.

    This isn't the last function, I'm just trying to take the baby steps so I just call the pl/sql API and retrieve a readable result. If anyone can help point me in the right direction, I would be very grateful.

    If it helps, here's the function I created using the code of Billy:
    create or replace
    function WebBrowser( url varchar2 ) return TStrings pipelined is
    --
    -- BASIC PL/SQL WEB BROWSER TEMPLATE
    -- supports http, https and proxy servers
     
            -- fixed constants
            C_NO_PROXY_FOR  constant varchar2(4000) := 'localhost';
            C_WALLET        constant varchar2(4000) := 'file:/blahblah';
            C_WALLET_PASS   constant varchar2(4000) := 'Welcome';
     
            -- Proxy settings that can be made arguments in the WebBrowser() call
            proxyServer     varchar2(30) := 'www-proxy.com';
            -- not all proxy servers use authentication, but many corporate proxies do, in
            -- which case you need to specify your auth details here
            -- (make it nulls if not applicable)
            proxyUser       varchar2(50) := NULL;
            proxyPass       varchar2(50) := NULL;
     
            -- our local variables
            proxyURL        varchar2(4000);
            request         UTL_HTTP.req;
            response        UTL_HTTP.resp;
            buffer          varchar2(4000);
            endLoop         boolean;
    begin
            -- our "browser" settings
            PIPE ROW( 'Setting browser configuration' );
            UTL_HTTP.set_response_error_check( TRUE );
            UTL_HTTP.set_detailed_excp_support( TRUE );
            UTL_HTTP.set_cookie_support( TRUE );
            UTL_HTTP.set_transfer_timeout( 30 );
            UTL_HTTP.set_follow_redirect( 3 );
            UTL_HTTP.set_persistent_conn_support( TRUE );
     
            -- set wallet for HTTPS access
            PIPE ROW( 'Wallet set to '||C_WALLET );
            UTL_HTTP.set_wallet( C_WALLET, C_WALLET_PASS );
     
            -- configure for proxy access
            if proxyServer is not NULL then
                    PIPE ROW( 'Proxy Server is '||proxyServer );
                    proxyURL := 'http://'||proxyServer;
     
                    if (proxyUser is not NULL) and (proxyPass is not NULL) then
                            proxyURL := REPLACE( proxyURL, 'http://',  'http://'||proxyUser||':'||proxyPass||'@' );
                            PIPE ROW( 'Proxy URL modified to include proxy user name and password' );
                    end if;
     
                    PIPE ROW( 'Proxy URL is '|| REPLACE(proxyURL,proxyPass,'*****') );
                    UTL_HTTP.set_proxy( proxyURL, C_NO_PROXY_FOR );
            end if;
     
            PIPE ROW( 'HTTP: GET '||url );
            request := UTL_HTTP.begin_request( url, 'GET', UTL_HTTP.HTTP_VERSION_1_1 );
     
            -- set HTTP header for the GET
            UTL_HTTP.set_header( request, 'User-Agent', 'Mozilla/4.0 (compatible)' );
     
            -- get response to the GET from web server
            response := UTL_HTTP.get_response( request );
     
            -- pipe the response as rows
            endLoop := false;
            loop
                    exit when endLoop;
     
                    begin
                            UTL_HTTP.read_line( response, buffer, TRUE );
                            if (buffer is not null) and length(buffer)>0 then
                                    PIPE ROW( buffer );
                            end if;
                    exception when UTL_HTTP.END_OF_BODY then
                            endLoop := true;
                    end;
     
            end loop;
            UTL_HTTP.end_response( response );
     
            return;
     
    exception when OTHERS then
            PIPE ROW( SQLERRM );
    end;
    Thank you!
    John

    John K. says:

    (1) my first question: Why am I get invited to enter variable bind by sqldeveloper? These are hard-coded in the url, I'm passing, so I don't know why I get invited to these.

    No bind variable. As bathtubs say these are substitution variables. Something that SQL * more supported for several year and something that is incorporated as a feature of some GUI for Oracle customers.

    Substitution variables are generally used in the installation scripts. You run a script (since SQL * the command-line) and passes command line parameter - these parameters are variables + & 1 + for the parameter 1, + & 2 + for the 2nd, etc..

    The script can then use these in the DDL statements (that do not support the bind variable) - e.g. create user & 1 identified by & 2....

    The customer to DEFINE in SQL command * more active/disable/configure the use of substitution variables. The default character to identify the variable substitution is "+ & +". So your problem with the URL being mutilated by your customer.

    I always use SET DEFINE OFF to disable the calendering customer my sending code on the server for execution. Another option is to use a different character to identify the substitution variables. The installation script Oracle Apex (quite large and quite complex) has the problem of the use of '&' in the code and need to also use substitution variables, as. So the installation uses the "+ ^ + ' character. I suggest to disable the substitution, or affecting a unusual as tank ' ^ ' or ' ~ '.

Maybe you are looking for

  • Doom 3, C & C Generals and C & C Tiberian Sun do not run or play in Windows 7 64 bit

    Three of my favorite games, C & C Generals, C & C Tiberian Sun and Doom 3 will not run or play in Windows 7 64 bit.  Last week, I built a new computer with Intel i7 860, GA P55A UDP4 Mobo, Gigabyte ATI Radeon HD5770, 4 GB ram, LCD Samsung B2350 with

  • Problem in import of DXF files in version education Ultiboard 11.0

    Hey guys,. Use Ultiboard 11.0, the education version. Trying to import a DXF file designed in solidworks for my PCB. The DXF file also one through a molex connector that has already drawn in solidworks and actually fits. The problem is, How can I cre

  • Cannot start or reload Windows on a laptop.

    A friend has problems with his laptop and asked me to take a look. He began to start on the blue screen of Windows startup, and then failed. Since she had nothing on the computer that needs saving, I asked if it would be nice to reload XP and she agr

  • MD3000i and TL 2000

    I was wondering if it is possible to connect the TL2000 to the MD3000i SAS out port. TL 2000 has 2 LTO 3 drives with SAS ports. The MD 3000i has dual iSCSI controllers The reason is that I picked up a used rack. And everything should work, but I did

  • -Internet security, McAfee, Norton, or Microsoft?

    I just bought a new computer, and it has "Internet Security Suite" of McAfee installed on it (it's a thing in the short term, I think it runs out in a few months).  I'm not fond of pay for virus/spyware/malware protection if I don't (I got lucky with