Category : express

In this post TNT Express Connect Pricing module), @MackieeE show a valid solution for 2.0 version of the TNT API. I’m trying use 3.2 version and it doesn’t work I’m usign this values: <?xml version="1.0" encoding="UTF-8"?> <priceRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <appId>PC</appId> <appVersion>3.2</appVersion> <priceCheck> <rateId>rate2</rateId> <sender> <country>ES</country> <town>BENISSA</town> <postcode>03720</postcode> </sender> <delivery> <country>ES</country> <town>TORREFARRERA</town> <postcode>25123</postcode> </delivery> <collectionDateTime>2019-05-07T11:10:00</collectionDateTime> <product> <id>15N</id> ..

Read more

created a simple crud application on nodejs and mysql. but have one problem, cant display the date without time and in the proper format. { "id": 1, "name": "Rick Sanchez", "dob": "1960-05-20T19:00:00.000Z", "phone": "84351548898", "comments": "Genius in the galaxy" }, in the phpmyadmin, the date in the dob i chose as the datetime format. Source: ..

Read more

I am using express Node JS to connect to a MySQL database in phpMyAdmin. However, I keep getting this error: code: ‘ER_DBACCESS_DENIED_ERROR’, errno: 1044, sqlMessage: "Access denied for user ‘username’@’%’ to database ‘FakeInsurance’", sqlState: ‘42000’, fatal: true This is my code connecting to the database: const db = mysql.createConnection({ user: ‘username’, host: ‘[omitted IP Address]’, ..

Read more

There is a page with <meta charset="EUC-KR">, say address-search.foo.com that searches an address and sends it to a specified url by submitting html form of method POST like below. let form = <form element>; form.address.value = "Some Korean words"; form.addressDetail.value = "Some Korean words again"; form.action = "https://my-service.foo.com"; form.method = "post"; form.submit(); And there is ..

Read more

Goal Change user agent header to Mozilla/5.0 (Linux; Android 6.0.1; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Mobile Safari/537.36 Sent a get request to a link with above user-agent header http://cdn67.vidorg.net/h7todxcxamlbu3tf6rvtllvuy2pl2bkxuhhfxdr7uqcnxr6x5ywe26ftwtta/Video.mp4 What I’ve tried Load iframe content with different user agent: function setUserAgent(window, userAgent) { if (window.navigator.userAgent != userAgent) { var userAgentProp = { ..

Read more