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
4
votes
2answers
2k views

Getting full image url for products via REST API

After accessing the Rest API (http://192.168.1.180/magento/index.php/rest/V1/products/SKU) to get the product details, the response is something like this: { "attribute_code": "image", "value": "/6/...
6
votes
3answers
14k views

Magento 2: Sending a Custom Header/Response from a Controller

In Magento 2 is it possible, from a controller execute method, to manipulate the request to send a custom header and error page. In Context: We're implementing a small, limited REST API endpoint ...
2
votes
2answers
2k views

Using CURL to call controller action

I am generating an excel report which takes around 10-25mins based on user selection. Page is served to admins only. When user presses export button after selecting filters, I am trying to call ...
9
votes
5answers
11k views

Magento 2: getPost and getPostValue methods on the request object

I see that everywhere where the request is involved in Magento 2, the request is an implementation of \Magento\Framework\App\RequestInterface. This interface does not contain the methods getPost (used ...
1
vote
1answer
4k views

Magento 2 Ajax request fails

I made an ajax request (in the admin html) and got the following response: "{"error":true,"message":"You entered an invalid Secret Key. Please refresh the page."}" new Ajax.Request('...
2
votes
0answers
442 views

Magento + HTTP/2, anyone noticed any issues? [closed]

Since Apache now properly supports HTTP/2, have any of you already tried running it and noticed any improvements and/or issues for Magento 1.9.x.?
0
votes
1answer
135 views

http is not working but https does in magento with https enabled

I am trying to open website on http:// and getting No data received ERR_EMPTY_RESPONSE but with https:// it works. please help me.
4
votes
1answer
2k views

How Magento 2 Routing Works

I need to know how magento 2 Routing Works... I want to know that when we request for any task in magento 2 then how its process to controller... Like I used command line console...' Then how my ...
1
vote
1answer
539 views

What is process that Magento processes customer registration?

It all starts with the createPostAction: public function createPostAction() { /** @var $session Mage_Customer_Model_Session */ $session = $this->_getSession(); if ($session->...
0
votes
1answer
43 views

URL-param for tags?

is there a chance to get (only) all products assigned to a tag by a URL-request like it is done with the request url.com?q=mysearch Like, if I had a tag "mysearch" assigned to 23 products and one ...
1
vote
0answers
252 views

Search result leads to page not found

The issue is that sometimes, searching for something leads to page not found. This seems to happen randomly with different search queries and layered filters, I haven't been able to reproduce it but I ...
43
votes
4answers
56k views

Magento2 how to getRequest

In Magento 2 how to receive request array? $_POST and $_GET too as we did in Magento 1: Mage::app()->getRequest()->getPost()
4
votes
2answers
1k views

Error parsing headers: duplicate header 'Content-Type' from DashboardController tunnelAction

I'm getting an apache error saying that I have duplicate headers for 'Content-Type'. I see that the tunnelAction function correctly adds the header Content-Type:image/png, but instead of passing in ...
0
votes
2answers
7k views

Get HTTP Referer and request parameters in a module block class

I'm trying add a simple template to CMS page using a block type from a local module. This template will rely on http_referer and request params. In the Design > Layout Update XML part of the CMS ...
1
vote
2answers
1k views

Handling AJAX requests

I have a class in my custom module that needs to handle various AJAX requests as well as a typical Magento request. I am using AngularJS on the front end. Angular will submit request parameters in ...
0
votes
1answer
84 views

getRequest from another action in Magento

I'm considering that is there any chance to getRequest from another action in Magento. For example, I have an action called registerAction() which is the action I submit data from my form to. I have ...
1
vote
2answers
2k views

Make fewer HTTP requests

I Checked my site in the gtmetrix and i got one of the following suggestion Make fewer HTTP requests This page has 55 external Javascript scripts. Try combining them into one. How can i solve ...

1
2