I am using Postman v4.9.3 and I am trying to view page response using POST request. Problem is that when clicking Preview button external CSS is not loaded. Can someone help me to resolve it? Or is there any other way to request page using POST and setting some headers and later rendering returned page?
Seems like Postman will render HTML page good only if there is fully specified resources links in page.
So /css/styles.css will not work while http://example.com/css/styles.css will work.
Here https://github.com/postmanlabs/postman-app-support/issues/1048 it's told there is a workaround - you need to switch off the Interceptor extension.
Yet, if you use the desktop app you might not be able to do it.
I have both, desktop and chrome apps and disabling the Interceptor didn't help for me.
Maybe it's because I still have it in the desktop app.
Hope the solution will help for you, please send your feedback.
After hours of search I found Insomnia which does exactly what I want which is rendering CSS (even if the path is relative) in the "preview" mode.
Can't recommend it enough.
Related
I host my own website at home (using wamp) that uses basic authentification. The authentification worked well and username:password in the url worked too. But since last week, when I load url with username:password#url.com it doesn't work and it seems that the css /js data won´t load. I tried this with a bootstrap example site and it worked. So I guess the problem is my website.
Here is my website template, as you can see the CSS doesn´t work except when reloaded.
I don't have this problem at the bootstrap example site (Link)
I use Google Chrome Version 59.0.3071.115 on my computer and it doesn't work on my android phone too.
Edit : it seems that the problem come from the URL. Chrome try to load css with basic authentication in URL and it fail. I've got Provisional headers are shown for the css file.
Do you know why I've got this problem now and how to avoid it ?
I found somebody else with this problem :
Bypass blocking of subresource requests whose URLs contain embedded credentials
Apparently it's a new limitation of chrome :(
When going on your page, I get this warning :
[Deprecation] Subresource requests whose URLs contain embedded credentials (e.g. https://user:pass#host/) are blocked. See https://www.chromestatus.com/feature/5669008342777856 for more details.
What is happening there, is that you are doing requests to URLs like :
http://stack:123456#88.182.191.233:8090/[...]
So, since you are sending crenditentials il the URL, Chrome blocks it (returning a (blocked:origin) status)
Edit: By the way, you should never send credentials over URL, especially when you are using http only.
So I am working on a fairly simple project, basically a web page that should list the captions from a certain instagram account. It's all designed, it just needs to be lit up with the content. Have a look at http://evanshellborn.com/speechofthebeets/.
I found that you can see a json file containing all the necessary data at instagram.com/{username}/media. So in my case, https://www.instagram.com/beets_are_life/media/. So before I put that page actually online, I was on my local machine, and I did a JSON call to that page and it worked perfectly. So I built it all out and my web page loaded the captions just like I wanted it to.
Then I went to put it online, (http://evanshellborn.com/speechofthebeets), but it doesn't work. Have a look at the script at the bottom of it, on my localhost that code works and the captions get loaded. But on the live page, I get an access not allowed error in the console. So I think Instagram doesn't allow this sort of direct access anymore, you have to go through their API.
Now I've tried looking at the API but it seems rather confusing. Basically what I'm asking for is a different JSON url that would give me the same result as https://www.instagram.com/beets_are_life/media/, but that would work from the live page.
I think https://api.instagram.com/v1/users/{user-id}/?access_token=ACCESS-TOKEN would work, just replacing {user-id} with the appropraite user_id. But where do I get an access token?
From reading https://www.instagram.com/developer/authentication/, it looks like you get one when a user puts in their user credentials. But I don't want to have anyone log in, I just want a simple web page.
Hopefully that made sense. How can I do what I want?
Looks like the API url https://www.instagram.com/beets_are_life/media/ does not support jsonp (no callback support), so u cannot use javascript (client side) for making API request, it will fail because of Access-Control-Allow-Origin error on browser side, you have make this API call on server side as proxy.
I guess https://www.instagram.com/<USER_NAME>/media/ is not a publicly documented API, thats the reason it is not supporting jsonp, Instagram uses it for their website and since it is same-origin it will work for them on client-side
This link will help you embeding the instagram on a simple html webpage.
There is a button on the bottom of the post on instagram.when you click on the link a menu pops up. then click on embed
now a box pops up
just copy paste the html and you are done.
it will fetch the post for you
I have a chrome app which basically is just a visual bookmark which sends the visitors to my website.
Currently it doesn't show any referer because technically the user came directly to the website.
Is there a way to detect this?
I understand I can append some query parameters in the URL of the chrome app but I am wondering if there's a cleaner solution than this.
The chrome.webRequest property should allow you to set the information you need. I couldn't find exact details that would help but there is an Auth option which you may be able to use as a referrer.
Hope this helps. Sorry I could not help further.
https://developer.chrome.com/extensions/webRequest.html
This is the same question that has been asked elsewhere on the site but at the moment it's in the C# and .Net categories and so are the answers whereas i need to know how to do it in html.
So i'm trying to download the file at url http://example.com/example.docx and the url s being redirected to http://example.com/example.docx? so internet explorer doesn't recognize it although Google chrome does oddly. So i would like to know is there any way to avoid this happening by altering my html code?
Html Code is pretty standard...
<p>Link Text></p>
Finally if you type in http://example.com/example.docx manually it works
Thanks
The redirection is happening on the server side - it is doing the redirection at the end URL.
There is nothing you can do to your markup to change this.
I'm quite new to web development, but I'm trying to do some stuff in Python and so I need help.
Sometime ago, I went into a page to debug html forms that allowed me to change the POSTs to GETs in the form request and that really helped me get some info from html forms by just doing everything in the URL instead of having to make my program fill some forms.
Unfortunately I lost that page address and as much as I search in Google I cannot come up with it or anything similar again. Can you direct me to some links that do this?
I tried both Firebug in Firefox and developer tools in chrome, but they don't seem to do this.
Ok, this is probably quite basic for most people, but in Firebug, you just have to go into the "NET" tab, make the request and then analyse it and if you right click it and choose: "Copy location with parameters" you get the formatted URL ready to go, even when using javascript.
If you have: <form name="form1">
You can this JavaScript:
document.form1.type="GET"
Use this in the page before submitting the form.
The web developer tool bar for firefox will do this and much more:
https://addons.mozilla.org/en-US/firefox/addon/web-developer/
EDIT
You can also use firebug and inspect the form element and change it from POST to GET