In coursera apigee course lab 2a, How does the proxy knows that the request is not secure(HTTP)?

I've created a proxy endpoint that should not delegate the request to the backend but rather route back to the browser with an error message.

The proxy that I've added contains this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProxyEndpoint name="PlainHTTP">
    <Description/>
    <FaultRules/>
    <PreFlow name="PreFlow">
        <Request>
            <Step>
                <Name>AM-400BadRequestHTTPq</Name>
            </Step>
        </Request>
        <Response/>
    </PreFlow>
    <PostFlow name="PostFlow">
        <Request/>
        <Response/>
    </PostFlow>
    <Flows/>
    <HTTPProxyConnection>
        <BasePath>/lab2a/v1</BasePath>
        <VirtualHost>default</VirtualHost>
    </HTTPProxyConnection>
    <RouteRule name="noTarget"/>
</ProxyEndpoint>

where AM-400BadRequestHTTPq is a response with some text and response code.

How does the proxy knows that the request is http? shouldn't their be some logic that checks if the url contains http or https?

I'm new to Apigee and trying to understand this.

Solved Solved
0 1 112
1 ACCEPTED SOLUTION

Not applicable

You can see in the configuration XML, there is one tag virtualhost whose value is default. By default default is for http and secure is for https in Apigee saas.

View solution in original post

1 REPLY 1

Not applicable

You can see in the configuration XML, there is one tag virtualhost whose value is default. By default default is for http and secure is for https in Apigee saas.