UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Commander
Commander
1161 views

Method to Ignore HTTP Errors

i have a URL that is known to return an HTTP 403 response. when i replay this, i do not want it to create an error or warning message. how do i do that?

0 Likes
2 Replies
Absent Member.
Absent Member.

Hello!

 

Have a look to the replay log. See what URL causes the error. Use this URL and create a download filter to avoid downloading this resource.

 

Regards

Thomas

0 Likes
Commander
Commander

good thought but it doesn't work.

 

i added code similar to this and it didn't work:

 

    web_url("logout",
      "URL=https://{my_website}/xx?logout=1",
      "Resource=0",
      "RecContentType=application/json",
      "Referer=https://{my_website}/xx",
      "Snapshot=t99.inf",
      "Mode=HTML",
      LAST);

 

and when it ran, the replay log showed the message

 

    Warning -26554: Not downloaded due to a filter

 

the problem is i need the URL to be submitted to the server and not blocked. but when the response comes back, that is what needs to be ignored...

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.