Error 404 but not if I click on it - html

If I go to for example www.example.com(requires log in(I log in)) and it has a list of links.
I click on one of them and it redirects me to a fully working page. But if I copy the url (of the link) and paste it into my browser I will get a 404 message. How is this possible and why?
Does it have something to do with cookies? I have no idea.
Thanks for the help.

There are some server variables for credential and/or in-favorite that are created when you login to a site. You can not expect to view the same facility while you are not logged in.

Related

POST request not showing up in Chrome DevTools

When using WhatsApp web, when you send a message there are no requests showing up, but the message still delivers. Why are there literally no signs of any requests made in the networking tab??
And how to make it visible (if it's hidden)??
Note: It happens only on WhatsApp web. On other sites, it works and shows the GET and POST requests...
This is a common source of conufsion when debugging networking requests done from the web.
Normally, developers look at these network requests from top down and assume that the lowest one is the most recent request made - therefore assuming that the request must be at the bottom. For 'plain' HTTP this is correct. However, many apps that want to show data in real-time, use WebSockets to communicate with an API.
The same thing happens in the Web-version of Whatsapp. Only assets like the actual JavaScript-app, icons etc are loaded using plain HTTP. Then, a WebSocket is opened through which messages are exchanged for example.
To see the actual request do the following:
Open DevTools, go to networking tab
Open Whatsapp web. Make sure that at this step (1) is already recording!
Filter for "WS" in the filtering bar
There will be only very few results which you can click to investigate
Inspect this Socket using the 'messages' tab
Now send a message, you will see a message called binary message with your message as payload.
Try "Settings" -> "Preferences" -> "Network" -> "Record network log" in Chrome DevTools. This checkbox is probably unchecked in your situation. So, check it.
Otherwise if "Record network log" is checked, then try "Settings" -> "Preferences" -> "Restore defaults and reload".

Google Chrome: How can I chrome to record a URL before it's redirected?

Say I am on http://example.com/. I fill out a form which is supposed to go /add (POST request) and then redirects to /listing page.
I want to find out details of the POST request. The issue is that as soon as it hits, it gets redirected and I can't find any trace of it in network tab.
Open the Google Dev Tools.
Go to the Network tab.
Checked the preserve log option.
That can help you log the POST request.

HTML where a new website is launched after successful log in

At work we are having issues with the log in credentials. We use SAP BI and for some reason when logging into the main site, everything works, but when logging into the OpenDoc feature of the site, the credentials do not carry over. The guys are working to fix the credential issues; in the meantime I'm trying to come up with an HTML script workaround that can, after logging into the first site, automatically redirect to the other site. I'm really new to HTML so any help would be appreciated.
This is all I have so far (close to nothing):
window.open("https://login_site.php");
here, after the user inputs the username and password, I want to trigger
the initiation of the second web address. I'm interested on having the
second scripts triggering only after pressing enter, or clicking "Log On"
without closing the first webpage, otherwise the credentials will be lost-->
window.open("https://redirected_site");
Thank you in advance.

can i set "redirect url" dynamically?

I have two problems -
1) I need to set the redirect url depending on a server i work on, which means that i need to have the ability to change the redirect url dynamically,
is there a way to set the redirect url using the API, and not through the web "www.box.com/developers/..." ?
2) I ran into a weird issue today, my app opens the box.net "login window" which redirects to the specified url when the user logs in, it worked fine until today! but for now the "login window" does nothing when the user logs in, it does not responds.
is there something that was changed?
1) yes you can. In the box applications console, leave the redirect url empty for yor app. Then all is needed is to provide a redirect url at runtime, when you make the authentication (this is something you are probably already doing).
2) I cannot reproduce the issue at this time

HTML Redirect a link to another link because of 403 error

Ok, so I have a button on my website, that I want to link to a video. It works when I'm viewing the site as a file on my computer; but when I view it on the web, it gives a me a 403 error. I figured this was because I was trying to access the file directly, and the site wanted me to access the file via the page just before the file. So I either need some code that when I push this button, it goes to the page before this file on their server, but then automatically redirects to this file. Or someone could just tell me another way to get past this problem.
Here is the code for the button on my site:
<td><span>Watch Now</span></td>
Thanks.
403 error is returned when the user doesn't have access to the file or media they are trying to access. Check to see what the permissions are on the mp4 you are trying to access and make sure it is accessible.