Questions tagged [http-request]

HTTP Request is a message within a request/response sequence, according to HTTP specification. May also refer an HttpRequest class in software frameworks and libraries that automates relevant functionality

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR

I have Magento 2.4.4 running on Plesk CentOS Server. PHP 8.1 PHP FPM Enabled Varnish on Port 80 Nginx on Port 8080 and 443 Apache on Port 7080 and 7081 Most of the time the website doesn't load well ...
user avatar
0 votes
2 answers
225 views

Getting information about a request using HttpGetActionInterface

I'm in the process of removing the deprecated Action implementation from my controllers in favor of the ActionInterface implementations. With the old extension approach of the Magento\Framework\App\...
user avatar
0 votes
2 answers
57 views

Error validating module $_GET $_POST, $_REQUEST

I have errors validating my module in Marketplace Magento 2.4 Direct use of $_GET Superglobal detected. Direct use of $_POST Superglobal detected. Direct use of $_REQUEST Superglobal detected. how ...
user avatar
  • 539
0 votes
1 answer
46 views

Unrecognized HTTP request to remote js library from my site

My site has a HTTP request being made to get this remote js library - https://r1-t.trackedlink.net/_dmpt.min.js and I do not know why? Can anyone help me with what this is? Thanks in advance and have ...
user avatar
  • 23
0 votes
1 answer
102 views

Request Parameters with php 7.4 and magento 2.4.1

After updating from 2.3.5p2 to 2.4.1 and from php 7.1 to php 7.4 I have strange trouble with request parameters. I see, that there are parameters set, when I var_dump $parameters=$this->request->...
user avatar
  • 413
1 vote
1 answer
351 views

Magento 2: How to use form key parameter in GET request?

I'm using magento 2.3.4 and i tried to generate a delete cart item like this in phtml file: <?php $formKey = $this->helper('Vendore\Module\Helper\Data')->getFormKey() ?> <a ...
user avatar
  • 79
0 votes
1 answer
93 views

Why is my Magento 2 site loading very slowly?

The issue I'm experiencing didn't happen until a few days ago. I wasn't sure if it's because of the extensions because I've installed no other extension that has anything to do with speed optimization....
user avatar
0 votes
1 answer
551 views

Magento 2.2 Make fewer HTTP requests

I Checked my website in the gtmetrix and i got one of the following suggestion This page has 95 external Javascript scripts. Try combining them into one. This page has 6 external stylesheets....
user avatar
2 votes
0 answers
238 views

Magento 2 Build Xml Request For External API

I would need to pass request payload in XML format for a web service. Below is the code I tried. How do I verify & view XML is constructed properly? Is there a better Magento way to create an ...
user avatar
  • 1,935
0 votes
1 answer
83 views

Send http post-request when order invoiced

I want magento 1.9 to send an http post to a webhook for every invoice created. Is there any model or easy modification to do this ?
user avatar
  • 13
0 votes
1 answer
1k views

Local bitnami/magento docker setup

I am trying to set up a local instance of Magento to play around with. I am having difficulties using this image: bitnami/magento I am able to get the homepage up but doing anything else ends with ...
user avatar
1 vote
1 answer
221 views

GET Products by brand and category

I'm trying to create some type of search method for customers where they select the product's brand they want to search and then, if they want, they can also select the category they want (if there ...
user avatar
4 votes
4 answers
1k views

Magento 2 frontend route only allow POST method

I'm using magento 2.2.5 and created a frontend route like this: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
user avatar
  • 68
1 vote
1 answer
509 views

What to replace deprecated Class 'Zend_Rest_Client' with in Magento 2.3?

A module I'm maintaining is not working on Magento 2.3 since Magento apparently deprecated Class 'Zend_Rest_Client' . I don't see any replacement Client listed in their documentation, so I'm a bit ...
user avatar
  • 138
0 votes
7 answers
5k views

Magento 2 increase site speed

Magento 2 website speed very slow as per https://developers.google.com/speed/pagespeed/insights/ Result of site:- Reduce server response times (TTFB) - 1.68 s JavaScript execution time - 2.9 s ...
user avatar
3 votes
3 answers
860 views

set x-frame-options in custom controller magento2

I have a custom controller with below code. namespace Vendor\Module\Controller\Service; class Login extends \Magento\Framework\App\Action\Action{ protected $_storeManager; protected $_customerFactory;...
user avatar
  • 1,749
3 votes
1 answer
741 views

How to avoid using php://input?

I have a POST endpoint that receives a JSON payload. I'm using the Magento\Framework\App\Request\Http class to try and retrieve my POST data. If I run $data = $this->request->getPost();, ...
user avatar
0 votes
0 answers
297 views

site - is currently unable to handle this request Http error Magento 1.9

This page isn’t working www.abc.com.au is currently unable to handle this request. HTTP ERROR 500. In this site we use Magento 1.9
user avatar
  • 549
2 votes
2 answers
32 views

In CRUD, Why delete item operation is preferred via POST request rather than GET request?

Is there is any special security advantages of using a POST request over GET request for delete operation? As Magento 2 has preferred POST for delete operation.
user avatar
  • 1,484
1 vote
1 answer
394 views

Disable\Remove Custom Product Attribute

When I do a GET request on a product, M2 returns some custom attributes that I have no interest in, such as 'is_recurring'. Is it possible to 'disable' a custom attribute so it does not appear in ...
user avatar
0 votes
1 answer
44 views

Set up Controller for AJAX

I am currently developing a new module for my company on Magento 2.1.8. The module requires the use of AJAX on the front end to send a receive data. This is what i currently have in one of my ...
user avatar
0 votes
1 answer
423 views

URL - Http Post Request with AJAX

I am developing a new module for my company in **Magento 2** and i require an AJAX Http post request, however I cannot find the correct URL. I have all of my controllers currently set up however, ...
user avatar
2 votes
1 answer
974 views

Generate Adminhtml Controller url with get parameter in Block

I have a controller for adminhtml area like this: namespace Namespace\Module\Controller\Adminhtml\Order; use Magento\Framework\Controller\ResultFactory; use Magento\Sales\Model\Order; class ...
user avatar
4 votes
1 answer
5k views

Add query parameter to current url in phtml

I want to add query parameter to my current url, I'm getting current url in my phtml like this: $current_url = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); I want ...
user avatar
  • 1,682
1 vote
0 answers
879 views

Magento : Calling SOAP API on Local Server Returning HTTP Bad Request

I created SOAP API on my magento website and it's working correctly on live server. But now I need to using those API in another server machine at local environment (local machine with IIS7) and for ...
user avatar
0 votes
2 answers
809 views

Change http to https in magento

getting some error in the console Mixed Content: The page at 'https://www.xxxxx.com/bedroom/beds/beds- without-storage' was loaded over HTTPS, but requested an insecure image 'http://www.xxxxx.com/...
user avatar
3 votes
1 answer
414 views

Serve merged CSS from one url

When I merge CSS it creates 3 merged files, and they are served separately as such <link rel="stylesheet" type="text/css" href="xyz.com/media/css_secure/32733c3332436554dae7e8f320cd2308.css" /> ...
user avatar
8 votes
3 answers
4k views

Magento2: How to check if request is from Web Service?

In Magento 1, We used to check as: if (Mage::getSingleton('api/server')->getAdapter() != null) { // request from Web-Service } How to check the same in Magento2? I didn't find any proper ...
user avatar
  • 4,632
1 vote
0 answers
653 views

Magento 2 .htaccses configuration for HTTP get request

I try to get list of modules to localhost with angularJS 2 After i check all code possibilities on angularJS 2 - i need some help with configuration. HTTP GET request with AngularJS 2: import { ...
user avatar
  • 993
0 votes
1 answer
181 views

trying to write media to another server

i am trying to write media to another server is it possible: i have 2 servers i need to put my magento code on 1st server and want all media on another server when we upload images of catalog, how ...
user avatar
  • 1
1 vote
1 answer
759 views

usatilea.nextmp.net is currently unable to handle this request

I just moved my site from local to live server it was working fine on local but as its moved over live start giving the error is currently unable to handle this request. This is the domain that i ...
user avatar
  • 529
1 vote
0 answers
47 views

htaccess redirect, assist please

What i am trying to do is rewrite some URLs and apply SSL on certaing pages on my site. This is the code that i have: RewriteEngine on RewriteBase / RewriteRule ^mylogin$ index.php?view=...
user avatar
3 votes
0 answers
932 views

Magento2 NodeJS: SOAP or REST API?

Does anyone know a good module that can use HTTP VERBS like POST and PUT ?. I tried this one magento2 but only managed to use GET and DELETE ... Hope someone has a few ideas !
user avatar
2 votes
5 answers
8k views

Magento 2 checkout bad request (400)

When I try to checkout by selecting a payment method and click place order button, I get following error message, "message": "An error occurred on the server. Please try to place the order again." ...
user avatar
  • 2,184
1 vote
0 answers
71 views

Restrict a controller HTTP Request by Cutomer email and password?

I had a similar question before, but I want to re-structure otherwise now. I want to make something like http://icecat.biz/ In that site, I can access to XMLs with products datasheets, making a HTTP ...
user avatar
13 votes
5 answers
7k views

Magento and HTTP/2 : what is the current status?

As some of you may know, HTTP/2 was recently born. From what I understood, it has been developed to just work with existing websites, which suggests that there is nothing to do to make Magento ...
user avatar
2 votes
2 answers
1k views

Magento 2 Observer not called due to caching?

Intention I am trying to get an affiliate extension to work. The basic concept is that a customer calls the shop-page with a get parameter that is the id of the affiliate partner. The ID will be ...
user avatar
  • 135
2 votes
1 answer
1k views

Request dispatched by checkout_cart_add_product_complete event is missing data

I have an observer which listens to the checkout_cart_add_product_complete event in Magento (this works correctly) but when I try to access the request data returned by the dispatched event it doesn't ...
user avatar
1 vote
1 answer
2k views

HTTP Problems with Google Fonts

I need to change all of the "http://" to "https://" in a file on my site. I did these steps. By the way, I'm using Magento 1.9.2.4 and a Chromebook - I right clicked on my site and clicked "Inspect". ...
user avatar
  • 21
0 votes
1 answer
412 views

Redirect all https requests to http except for checkout

I want to redirect all https requests to http on frontend except for checkout. I am using nginx as my web service. Please let me know how can I do this.
user avatar
  • 580
4 votes
1 answer
3k views

Magento 2 call external REST api

I am trying to call external api from Magento. Below is the request, $client = $this->_httpClientFactory->create(); $client->setUri('thirdpartyurl.com/api/'); $client->setMethod(\...
user avatar
  • 1,935
0 votes
1 answer
133 views

saveAction stores empty object

Whenever I fill a form and click "Save", magento doesn't get the form data. It just saves an empty object in the database. I can't figure out why. Here's my form and file structure: Form File ...
user avatar
  • 171
4 votes
1 answer
2k views

How do I get Http_referer path without "http://localhost/index.php/"?

I want to get the preview page url using: Mage::helper('core/http')->getHttpReferer(); and it get's me something like: http://localhost/index.php/customer/account/ How do I get just : customer/...
user avatar
2 votes
1 answer
1k views

Magento 1: unset a previously set query parameter or reinit the request

So I've made an integration test where my setUp() method add a query parameter to the request like this: Mage::app()->getRequest()->setQuery('entry', 'value'); However, the tests that run ...
user avatar
6 votes
1 answer
3k views

Braintree - 400 Bad Request Message on checkout

I'm setting up Braintree payment In Magento 2 environment through integrated extension provided by Magento. I have compiled the backend form with my merchant data and i selected sandox option to test ...
user avatar
  • 61
0 votes
2 answers
186 views

Magento Shipping Method

I have created a custom shipping method in Magento but my question how i can call a request from external gateway and read XML data in Magento shipping method .
user avatar
22 votes
7 answers
40k views

Redirect all http:// request to https://

Earlier i have posted this question : https://stackoverflow.com/questions/36104047/how-to-redirect-all-http-requests-to-https-on-magento but didn't get any reaction. Here is my site URL : www.trendy-...
user avatar
0 votes
1 answer
1k views

Varien_Http_Client: getQuery() returns nothing

I'm trying to use Varien_Http_Client for calling external API, here's the code: $httpClient = new Varien_Http_Client(); $httpClient->setUri('https://api-host/api/endpoint'); $...
user avatar
2 votes
2 answers
3k views

retrieving http header info

I use Vladimir Popov(?)'s very nice Webforms extension to enable user submitted custom forms. I want to capture all the http header information from the user who is submitting the form. Vladimir has ...
user avatar
4 votes
3 answers
6k views

Triggering a 404, 500, 503 error in Magento 2

Is there a standard way in Magento 2 to programmatically trigger an HTTP error state and have the system just deal with it? i.e. is there a standard exception we can throw or global method we can ...
user avatar
  • 43.8k