Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Sending a Request via Proxy Server

To send requests via a proxy server, use this function.

## Signature

    Object setProxy(Object connectionInfo, String proxyHost, int proxyPort)

## Description

This function updates the `HttpConnectionInfo` object with the proxy server details.

For secure communication, use the function as follows for both Synchronous and Asynchronous requests:

    Object connectionInfo= HTTP.ConnectionInfo.createHTTPConnectionInfo(true);
    HTTP.setSecureInfo(Object connectionInfo, String sslProtocol, Object clientIdKeyStore, String clientIdPassword, Object trustedCertsKeystore, String trustedCertsPassword, boolean verifyHostName)
    HTTP.setProxy(Object connectionInfo, String proxyHost, int proxyPort)

## Parameters

Name | Type | Description
--- | --- | ---
    connectionInfo
    Object
| HTTP Connection Info object.
    proxyHost
    String
| Proxy host.
    proxyPort
    Integer
| Proxy port.

## Returns

Type | Description
--- | ---
    Object
| Connection info object.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.