mcxiaoke / android-volley

DEPRECATED
4.29k stars 1.56k forks source link

Request at https has been redirect to http #179

Closed black-lotus closed 7 years ago

black-lotus commented 7 years ago

Hi,

I got weird error when using https, unfortunately the error only come in specific API here the error in my log

BasicNetwork.logSlowRequests: HTTP response for request=<[ ] http:/API/private/cart 0x6adf7baf NORMAL 12> [lifetime=628], [size=326], [rc=301], [retryCount=5]
BasicNetwork.performRequest: Request at https://API/private/cart/ has been redirected to http://API/private/cart
com.android.volley.RedirectError
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                                                                                <html><head>
                                                                                <title>301 Moved Permanently</title>
                                                                                </head><body>
                                                                                <h1>Moved Permanently</h1>
                                                                                <p>The document has moved <a href="http://API/private/cart">here</a>.</p>
                                                                                <hr>
                                                                                <address>Apache/2.4.18 (Ubuntu) Server at API Port 80</address>
                                                                                </body></html>

Any help would be appreciated

black-lotus commented 7 years ago

Solved, in https mode i just have to remove "/" from the last character