How to control firefox to open a URL with sending a POST request? - linux

Here is my question. I have a site whose IP is 192.168.80.180. I want to use firefox to open it. and at the same time sending it a POST request to login. So I don't need to input the username and password in the web page and when firefox is startup it will directly login to the website. My platform is Linux. Please give me some ideas.
Update:
Concretely, how to communicate with firefox ,and let it load a certain URL which is a dynamic page.

Check this :
http://linux.about.com/od/commands/l/blcmdl1_curl.htm
curl allow you to do requests on anywebsite.

Related

Cookies are enabled but website says they're not

I am trying to use node with Puppeteer to log in to a website but it doesn't let me navigate to the login page. Instead I am re-directed to a page that says that I need to enable cookies in my Chromium browser. When I navigate to the login page manually, I'm not re-directed and my cookies are enabled so I don't know how to fix this.
This problem has been solved by using a different login URL.

Instagram In-App Browser $_GET variables not working

I have a checkout page written in PHP that uses affiliate tracking.
Many affiliates like to advertise via Instagram.
When using the Instagram In App Browser on mobile phones anything within the code that relies on the $_GET variable is failing as it never seems to have any available data.
Thoroughly tested and issue is specifically with the Instagram browser, Facebook browser works as expected.
I can detect the Instagram browser ok via User Agent to do a bit of damage control but don't have a full working solution.
I attempted to force my page open in native browsers on the phone but couldn't get it to work, it was just refreshing the page In-App.
I've attempted loading scripts in iFrames to get needed data but those seem to be blocked as well when going through the In App Browser.
Open to any suggestions.
This resolved the issue for me.
WP Engine host Redirecting Bots
WooCommerce Checkout Issue specific to Instagram In-App Browser

How would I force my page to be loaded *only* in an iframe

I want to host a webpage that can only be served via iframes within my own domain.
An example of this in the wild would be Codepen. They sandbox the content of a "pen" in an iframe, but if you try to load the url from a browser it responds with an empty page.
I understand there might be multiple answers to this question but I'm hoping someone could point me in the right direction.
Would I be checking the referrer server side? Are there any other options?
Referer is a good start for the server side.
Also you can try using CORS headers:
Only allow iframe to load content
Or validating using client side javascript code:
How to identify if a webpage is being loaded inside an iframe or directly into the browser window?
Also check info about referrerpolicy
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-referrerpolicy

How to simulate a login to Amazon in MCU?

I would like to login to Amazon without browser so that I can get the "code" returned by Amazon which process is running on a MCU. Since MCU cannot run a browser so I cannot use a browser or headless browser to simulate the login process.
Do anyone have any idea to do this ?
Also, since I found that the page "index.html" which hold the "Login with Amazon" button and has Amazon login SDK "https://api-cdn.amazon.com/sdk/login1.js" would redirect to "https://www.amazon.com/ap/signin?..." with different parameter values after clicking the "Login with Amazon" button, can I skip the page "index.html" and go to the Amazon login page directly ?
Thanks,
Jack
You can manually compose the login page URL that the JavaScript SDK composes, but depending on the type of grant, you'll need an https page as your origin or an https page to return to.

Is it OK to HTTP redirect images used in email clients?

I have seen the answers to Is it OK to HTTP redirect images. It is a YES - browsers would follow redirection.
However, do email clients (GMail, Express, Thunderbird, Yahoo...) follow the same rule?
I just answered this at superuser. Here is the same answer:
Yes. I just sent an email containing <img src="http://www.example.com/img/logo.png" alt="not displayed"/>. The example server is in my control in redirects to the same URL with https.
My findings:
GMail on 24 Oct 2017: It displays the image, but replaces it's location to something like https://ci3.googleusercontent.com/proxy/2ks...5hk=s0-d-e1-ft#http://www.example.com/img/logo.png. I guess that all browsers follow redirects and therefore all webmail interfaces should be fine.
Thunderbird 52.4.0: It doesn't load remote content by default, but after allowing it, the image gets displayed correctly.
Evolution 3.18.5.2: Same as Thunderbird. Once you load images via Ctrl+I, it's displayed.
Outlook (unknown version): A colleague confirmed that it's displaying on their Windows machine.
Mail on macOS (10.3): Another colleague confirmed that it's displaying when they re-open the email. It might just be that the image took a few seconds to load, not sure.

Resources