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
0 answers
23 views

An exception occurred while completing a multipart upload: Error executing "CompleteMultipartUpload"

I am writing this since I have literally no idea in how to debug this anymore. I have a custom module that creates a csv feed and the uploads it to a digital ocean remote storage (space or whatever it'...
Nicholas's user avatar
1 vote
1 answer
66 views

307 redirect in Magento 2

How could I implement in Magento 2 a http 307 redirect. I would like if possible use Magento methods/framework not phps. Thank you.
Simse's user avatar
  • 25
0 votes
1 answer
2k 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 ...
David Buik's user avatar
1 vote
2 answers
926 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\...
Hurrpadurr's user avatar
0 votes
2 answers
146 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 ...
Miguel's user avatar
  • 549
0 votes
1 answer
77 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 ...
shivam's user avatar
  • 23
0 votes
1 answer
151 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->...
Mario's user avatar
  • 433
1 vote
1 answer
677 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 ...
jojo's user avatar
  • 129
0 votes
1 answer
170 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....
VWijaya23's user avatar
0 votes
1 answer
633 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....
Jaydip Patel's user avatar
2 votes
0 answers
312 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 ...
blakcaps's user avatar
  • 1,965
0 votes
1 answer
114 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 ?
Hamad's 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 ...
Kyle Calica-St's user avatar
1 vote
1 answer
392 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 ...
Tiago Costa's user avatar
4 votes
4 answers
2k 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:...
blue's user avatar
  • 118
1 vote
1 answer
1k 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 ...
M. Sonah's user avatar
  • 136
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 ...
Hiren Shah's user avatar
3 votes
3 answers
1k 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;...
Jafar Pinjar's user avatar
  • 1,889
3 votes
1 answer
989 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();, ...
domdambrogia's user avatar
0 votes
0 answers
326 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
Gagan's user avatar
  • 549
2 votes
2 answers
55 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.
Milind Singh's user avatar
  • 1,554
1 vote
1 answer
428 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 ...
user8709724's 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
459 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
1k 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 ...
nortonuser 's user avatar
4 votes
1 answer
6k 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 ...
Shell Suite's user avatar
  • 1,682
1 vote
0 answers
907 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 ...
Ishan Jain's user avatar
0 votes
2 answers
910 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/...
Nitesh Kumar  Singh's user avatar
3 votes
1 answer
444 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" /> ...
user2240778's user avatar
8 votes
3 answers
5k 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 ...
MagePsycho's user avatar
  • 4,692
1 vote
0 answers
723 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 { ...
Goldy's user avatar
  • 1,013
0 votes
1 answer
201 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 ...
Ankur's user avatar
  • 1
1 vote
1 answer
762 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 ...
Xabby's user avatar
  • 529
1 vote
0 answers
48 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=...
Nikola DImovski's user avatar
3 votes
0 answers
945 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 !
Octavian Lojnita's user avatar
2 votes
5 answers
9k 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." ...
nuwaus's user avatar
  • 2,314
1 vote
0 answers
72 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 ...
Eliacim DAVILA - CENSERE's 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 ...
Raphael at Digital Pianism's 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 ...
Jérôme's user avatar
  • 145
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 ...
Chris Edwards's 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". ...
Lan's user avatar
  • 21
0 votes
1 answer
416 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.
Twinkal's user avatar
  • 610
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(\...
blakcaps's user avatar
  • 1,965
0 votes
1 answer
134 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 ...
Bruno's 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/...
ana.coman93's 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 ...
Raphael at Digital Pianism's 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 ...
Alberto's user avatar
  • 61
0 votes
2 answers
188 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 .
mahmoudismail's user avatar
22 votes
7 answers
41k 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-...
Abhishek Kumbhani's 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'); $...
Nam Dau's user avatar