AnsweredAssumed Answered

Getting hard redirect when trying to access v2 api

Question asked by Dmitriy Krasnikov on May 4, 2015
Latest reply on May 5, 2015 by Dmitriy Krasnikov

What could be the reason I am trying to access qualysapi.qg2.apps.qualys.com/api/2.0/fo/session with action=login and our username and password, But getting 301 and then 302 and finally 200 but from manual pages at  /qwebhelp/fo_help/index.htm .

 

The weirdest thing is - even in this forum I couldn't put the full url to api, because it was auto converting it to that FOHelp

 

Try it yourself combine https:// and qualysapi.qg2.apps.qualys.com/api/2.0/fo/session

 

Below is responses from session endpoint:

HTTP/1.1 301 Moved Permanently

Date: Mon, 04 May 2015 16:03:13 GMT

Server: qweb

Location: https://qualysapi.qg2.apps.qualys.com/api/2.0/fo/session/

Transfer-Encoding: chunked

Content-Type: text/html; charset=iso-8859-1

 

 

108

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>301 Moved Permanently</TITLE>

</HEAD><BODY>

<H1>Moved Permanently</H1>

The document has moved <A HREF="http://qualysapi.qg2.apps.qualys.com:443/api/2.0/fo/session/">here</A>.<P>

</BODY></HTML>

 

 

0

 

HTTP/1.1 302 Found

Date: Mon, 04 May 2015 16:03:13 GMT

Server: qweb

X-Frame-Options: SAMEORIGIN

Location: https://qualysguard.qg2.apps.qualys.com/qwebhelp/fo_help/index.htm

Transfer-Encoding: chunked

Content-Type: text/html

 

 

0

Outcomes