348 Topics
![]() | |
We host some page resources, such as fonts, on a different subdomain (e.g. webpages are at www.daniweb.com and resources are at cdn.daniweb.com) An HTTP header of `access-control-allow-origin: *` is being sent from all cdn.daniweb.com requests. When inspecting indexed pages from Google Search Console, from the URL Inspection tool I click … | |
I came across this [article](https://developer.ibm.com/articles/messaging-protocols/) from IBM. It states that a **protocol** describes the **format of the bytes** that are transferred over the wire. > A protocol is sometimes referred to as the wire protocol, and it describes the format of the bytes that are transferred over the wire, and … | |
## Introduction ## The Hyper Text Transfer Protocol (`HTTP`) is one of the most common communication protocol on the internet. There are three major versions of HTTP that you should be aware of: **1.1**, **2.0**, **3.0**. Versions 1.1 and 2.0 are widely used today, so this tutorial mainly focuses on … | |
Issue: I need example.no-ip.org to point to example.no-ip.org:20202 I have read that this is not possible with just DNS. However no-ip.org lets me set up DNS SRV (records?). Ive have followed this guide to set it up, but it does not redirect to IP : PORT [url]http://www.no-ip.com/support/guides/other/configuring_srv_records_with_no-ip.html#1[/url] Still cant get … | |
Internal links are wrecked – One of the ways to rank websites pages in search engines is by swarming their links. If there are deceased links or broken links on your website, it can stop search engine bots from crawling your site and, thus, indexing it. It is good that … | |
Hi! Recently I have decided to change my website from Fred's Fashion Boutique to Fred's Fashion (because the URL became available) and I was in the process of a redesign so I thought it would be a good time. My website is only about 3 months old so wasn't receiving … | |
Hi. I have recently a problem to access to sites https in all browsers. In the past I had a similar situation and that the problem was solved by removing Bytedefender. Now, I have no antivirus, Windows security only, and there is an app called Lenovo VANTAGE in which the … | |
If you need your PHP script to redirect to a different website, you can send an HTTP header to do that. Remember, `header()` must be called before any actual output is sent, which includes not just HTML, but blank lines, etc.. as well. | |
Hello, I have been searching around the net looking for solutions to my problem, but none have worked. My issue is that when i redirect using: <meta http-equiv="Refresh" content="0; url=<?php echo $URL; ?>"> The hash tag part of URL gets removed by IE. So example.com/sample#foo will just load as example.com/sample. … | |
Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt … | |
I'm using the following to redirect http to https in my root directory htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> But this seems not to work if I access directly sub directories (http://example.com/sub-directory/) unless I place this mod_rewrite in an htaccess file in … | |
Cache in local storage of browsers gets cleared when website page redirects from AliPay payment website. This is happening in some computers and working fine in some. From my website user selects AliPay payment method then user is redirected to payment website and on successful payment is being redirected back … | |
I want to redirect every user on my site to folder - if folder exists with htaccess. Regardless to which page he wants to access (index.php, team.php, custom.php), he must be redirected to the folder I want. | |
Since I totally F'd up entire topic. [Over here](https://www.daniweb.com/programming/software-development/threads/502281/verify-if-data-sent-by-servers-how-do-bigger-companies-do-that), where nobody has ever known what I meant, until I realized that I said a lot of things that didn't make sense at all, nor I could make up any reasonable statements from smart people out there. By suggestion of said … | |
I saw various search engine blogs/journals regarding http to https conversion, where all are saying that it is best to change your website from Http to Https for obtaining better Google rankings. However, is it recommended/accepted by Bing and Yahoo as a ranking factor? | |
I'm using Mamp 3 (pro) on Mac OS X Yosemite 10.10; I'v already compiled and installed mod_proxy_html (3.1.2) and mod_xml2enc, they are both correctly loaded by Apache 2.2.29 without issues. This is my typical html file: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Authorization" content="Bearer dummyToken"> <title>Header … | |
I dont know whether this is the relevant forum but I dont know why I am getting the above mentioned error when I try to open website www.magicbricks.com from my laptop. I can open this on my office computer..! The error details are as below; HTTP Status 500 - error.security.userNotActive … ![]() | |
I am trying to use a sms gateway app for android called SMSGateway with a http header request using curl as below; $curl_handle=curl_init(); curl_setopt($curl_handle, CURLOPT_URL,"http://192.168.1.2:9090/sendsms?phone=$phone&text=$message1&password=xxxxxxxx"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 10000); curl_setopt($curl_handle, CURLOPT_TIMEOUT,50000); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0'); $query = curl_exec($curl_handle); if($query){echo "Message Sent to $phone … | |
Hello Daniweb Community, Would there be a reason why [Google Chrome](https://www.google.com/chrome) is striking out a bunch of HTTPS websites? Even ones that used to be green but are now red and strike out. | |
Reading the content of a web page with a given URL is pretty simple with Go. Here we defer the closing of the response body (at an early point, so we won't later forget) until the program exits. | |
Almost every single topic I'll start will start with `OP Kudos:`? Just because I have **+18** on reputation now? Not all of the questions I ask are that extremely important, some are just normal question where I ask you to share your knowledge, or I ask your opinion. Sure, it's … ![]() | |
HTTP Status 404 - /grid/ type Status report message /grid/ description The requested resource (/grid/) is not available. Apache Tomcat/5.5.20 | |
HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/gridjet/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 … | |
I have a few dozen links like: http://www.domain.com/publication?id=test http://www.domain.com/publication?id=test&tkn=25MMI7 http://www.domain.com/publication?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s I want to be able to redirect them to: http://www.domain.com/publication/?id=test http://www.domain.com/publication/?id=test&tkn=25MMI7 http://www.domain.com/publication/?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s How can I do this? Thank you. | |
This "FakeWebClient" will allow a C# application to send and receive cookies as part of the request. This behaviour is not available by default. Please note that on line 35 there is a possible NullReferenceException, I managed this at a level higher but you may wish to handle it in … | |
Hello good people. I am trying to add a snippet of javascript to the head tag of a mobile site that checks if the visitor is using a PC and if the visitor is viewing the mobile site on a PC I want them to be redirected to the normal … | |
Hi can anyone help me find what am i doing wrong. i have an xml request that check data on db and return the result. and base on that result it will clear or highlight a textbox. its working fine using the original function but when i add another xml … | |
Dear Readers, I have a simple HTML form pointing to a PHP (<form action="xy.php" method="post">), and if I type http:// into an input of the form, it won't run. If I type anything else the form runs. How can I solve this? Maybe somewhere it is interfering with another http:// … ![]() | |
Is the check: if (!isset($_SERVER['HTTPS']) OR empty($_SERVER['HTTPS'])) { // We are NOT using SSL } a fool-proof way of checking if we are NOT using SSL with PHP/Apache? I understand that IIS sets to 'on/off' but that's irrelevant for me. I am just wondering if I additionally need to check … | |
Just discovered PLOOP.com. Have all the folders but the bootloader file online is said to be outdated. don't know where the newes file is | |
Just a show of hands, how many people have taken the plunge and migrated to HTTPS since Google's announcement? I was really against it at first, because I just don't like to do things just for SEO's sake, and it seemed to me like this was one of those things. … | |
Hi, I am trying to write a .htaccess script that can redirect any URL on my site (whether it exists or not, including sub-domains) to the index page of that site. For example: example.com/pages/page.htm ---> example.com sub.example.com/page.htm ---> example.com error.example.com/error ---> example.com I've tried a few things with mod_rewrite but … | |
I have this on my error log. GET /wall/roves/378 HTTP/1.1" 404 212 i know it means that page its not found but i cant figure out why? its an Apache thing? | |
I am using upload services and i have to use a request over http due to which IE gives me "Mixed Content" popup. My client do not want this. Is there any way to hide or handle it through java script or in Jquerry or C#? Additional Info: Web Application … | |
I have some experience with client-server codes. TCP and udp client. I want to know how a stream socket works with HTTP. This client is for a server-client code where the greatest common divisor is calculated and displayed. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> … | |
I have a python code that reads a file into a stringio. This works great but now i need to do is http post from the stringio and i can not figure it out. Any help would be greatly appriciated cause this is really conffusing and i dont know what … | |
I moved my old site to the new domain and have parked the old site over the new domain. Any ideas how to do the proper 301 redirect so the old site redirects each page to the new site. So: http://dwhs.net/web-hosting-plans.htm Redirect to: http://webhost.pro/web-hosting-plans.htm So far I just have: Options … | |
I've searched the internet for a solution to this problem, to no avail. I'm getting an increasing number of complaints that, as the title says, my joomla sites are displaying as 503 errors in windows phone 8. HTTP 503 service unavailable. I've tested it on a lumia 1520 and I … | |
Hi! I'm not a web developer, but I'm a blogger and I would like some tips on how to create a 404 error message or to do something about this message feom Blogger: "Sorry, the page you were looking for in this blog does not exist." I would like to … | |
Ok so I have been searching for several days on how to write a simple python script that will HTTP post to my server. I am jsut looking for some tips on how to write this properly cause as of right now im having to upload my add and update … | |
I am having issues with bookmarks directing to other webites. I can save bookmarks but when I click them later it goes to another website like http://www.adcash.com/script/pop_packcpm.php?k=5223ae7e0c776178106.541145&h=59ebbf60230047531bf2e60d5ae2390545fce553&id=0&ban=178106&r=136690&ref=h&data=&subid= I have windows 8 and am using Firefox which says it is up to date. How do I get rid of the virus? … | |
This ones got me confused, I'm a total noob but I created a joomla site, hosted by justhost and it's fine on all browsers apart from Windows 8 Phones running Internet Explorer 10 where all you get is the HTTP 503 Service Unavailable. I've checked it via http://downforeveryoneorjustme.com which says … | |
So I'm trying to figure out why my get method doesn't pass its test. This is my attempt at the get method: public Value get(Object key) { //Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. for (Pair<Key,Value> … | |
Hello all, I have a wordpress site, http://gardenoftomorrow.com/ As of the first 3 years, my wordpress permalink structure has been /%category%/%postname%-%post_id%/ I now plan on changing the category each post is filed under, and changing my permalink structure to /%postname%/ I made the permalink change, and I've setup redirection for … | |
Hi, I'm not sure if I'm posting this in the correct place as this is related to nginx configuration and not specifically PHP scripts. If I am posting this in the wrong section, please let me know and I will post it in the correct location (unless a Mod is … | |
Hi, I changed my wodrpress URL manually and after then i saved and loged out from admin panel . now i can't login to my wordpress Admin page after changing The URL 's and whenever i want to log in it redirects to other page that i changed in URL … | |
Hello Community, I was just wondering what this url is "https://fbcdn-photos-d-a.akamaihd.net/hphotos-ak-ash3/hellocdn.html?v=1" for some reason on start-up my computer will open this url not all the time but occasionally. It doesn't do anything it just gives my a blank page, the HTTPS certificate is in affect so I don't thing it's … | |
Hello guys, i'm having this project where i must create a server that communicates with a browser.I must write something like this in the browser: http://localhost:11880/path and the message printed in the server will be: GET /path HTTP/1.1 Host: localhost:11880 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 … | |
while(1){ new=accept(socket, (struct sockaddr*)&peer_addr,&peer_addrlen); if (new<0){ break; } else{ recv(new,mesg,sizeof(mesg),0); if (strstr(mesg, "GET") != NULL){ printf("\n%s",mesg); FILE *write = fdopen(new, "w"); fprintf(write, "HTTP/1.1 200 OK\nContent-length: 47\nContent-Type: text/html\n\n<html><body>< H1>HTTP/1.1 200 OK</H1></body></html>"); fflush(write); } else if (strstr(mesg, "POST") != NULL){ strcpy(resp,"POST\nContent-length: 47\nContent-Type: text/html\n\n<html><body><H1>POST</H1></body></html>"); c=send(new,&resp,sizeof(resp),0); printf("%c",c); } else{ strcpy(resp,"HTTP/1.1 500 Server Interval Error\nContent-length: … | |
I have the cookies and subdomain selection for header: <script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ var city = readCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ var city = $(this).val(); window.location.href = 'http://' + city + '.example.com'; }); }); function createCookie(name,value,days) { if … |
The End.