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?

Member Avatar
+0 forum 0

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 Test</title> </head> <body> </body> I need to **convert all the <meta http-equiv="some" content="thing"> to real http headers**. I've already known how to do this via ajax, it's not a problem. But I need to add an oauth token, inside the **Authorization header field**, to get access to various protected resources, …

Member Avatar
Member Avatar
+0 forum 7

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 !<br>";}else{echo "Message Not Sent to $phone !<br>";echo 'Curl error: ' . curl_error($curl_handle)."<br>";} curl_close($curl_handle); This works perfectly fine on my local system but it gets timed out when executing from server... I need to know what is wrong...is it a curl issue ? should i use file_get_contents ? Actually I did …

Member Avatar
Member Avatar
+0 forum 8

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.

Member Avatar
+0 forum 0

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 request the function that i add don't work properly but the first function is working fine my script SHOWPLATE WORKING function showplate(str) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && …

Member Avatar
Member Avatar
+0 forum 3

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:// URL or sth? Thanks in advance, Tibor

Member Avatar
Member Avatar
+0 forum 4

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 C# Asp.Net

Member Avatar
Member Avatar
+0 forum 1

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> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <time.h> #define MAX_BUFFER_LENGTH 100 int main(int argc, char *argv[]) { int sockfd; struct sockaddr_in their_addr; // connector's address information struct hostent *he; int numbytes; int serverPort; int a = 0; int b = 0; struct timespec time_a, time_b; printf("TCP client example …

Member Avatar
Member Avatar
+0 forum 1

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 to do. The url is a dummy website but this is my full code maybe someone could help. import requests, shutil, datetime, glob, os, csv,fnmatch, StringIO def convertToSor(fileLoc, fileName, mode, listName): s=StringIO.StringIO() os.chdir(fileLoc) for FILE in glob.glob("SOR935*"): filepresent = os.path.isfile('/home/hatterx/Desktop/Bronto_Files/FACTS_bronto_import_add_'+dt+'.csv') with open(FILE, 'r') as f1: #, open('/home/hatterx/Desktop/Bronto_Files/FACTS_bronto_import_add_'+dt+'.csv', 'ab') as f2, …

Member Avatar
+0 forum 0

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 files manually and it would make things easyer to be able to run a python script to do it for me. So any help would be greatly appriciated at this time.

Member Avatar
Member Avatar
+0 forum 5

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 (lucid) Firefox/3.6.12 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://localhost:11880/path Firstly i haven't understand what 'get' will do. The printed message will be different for get and post method, but i cant understand if i will have to write: 'get http://localhost:11880/path' in the browser …

Member Avatar
Member Avatar
+0 forum 1

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: 47\nContent-Type: text/html\n\n<html><body><H1>HTTP/1.1 Server Interval Error</H1></body></html>"); c=send(new,&resp,sizeof(resp),0); printf("%c",c); } } } I am trying to do a http server that will connect with a browser and sends to it html code for a directory. The theme is that i've got no idea about how i will send the html code through …

Member Avatar
Member Avatar
+0 forum 1

i have a simple note and images storing java program that stores data into the server..i'm confused about what to use for building the server..should the server be built using sockets?? or which listens for http requests (the client sends json data)?? could anyone please tell me which one would be better?? how would you make this type of server? thank you/

Member Avatar
Member Avatar
+1 forum 5

Hi, I want to access a web service and get the response in json using javascript. The web services can respond in json and gives me a table of records with a specific campus. I input the campus code in the text box and create the url. Now, I want to get the response in json and I'm really stuck. Can anybody give me some clues please? <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box: <BR> <INPUT TYPE="text" NAME="inputbox" VALUE=""><P> <INPUT TYPE="button" NAME="button" Value="Click" onClick="loadurl(this.form)"> </FORM> <script> function getData(form) { var baseUrl = "https://studentwebservices/rest/location/campus/"; var campus = form.inputbox.value; var url …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone, I am trying to write a website that allows a user to input a stock symbol(ie. APPL, GOOG) and get basic information back. I have a html/js file and how it looks is fine but I am running into trouble when doing an HTTP GET using the XMLHttpRequest. I've test the URL in the browser several times and it works great and displays the JSON that I would like to be getting. At this point I've looked at numerous tutorials and have asked others before and have not found a solution. I've done this before in Java and …

Member Avatar
Member Avatar
+0 forum 1

I am having some trouble posting to website..I've tried posting to many different websites and get the same result.. An error message referencing the js on the page, asking if i want to continue.. Then the response i get is the form I am posting to, with all fields correctly filled in. It looks like data was posted and never submitted?? I can't figure out where it's going wrong, and any help would be greatly appreciated. Here is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Net; …

Member Avatar
Member Avatar
+0 forum 5

I need a way to check if tweet exists. I have link to tweet like https://twitter.com/darknille/status/355651101657280512 . I preferably want a fast way to check (without retrieving body of page, just HEAD request), so I tried something like this function if_curl_exists($url) { $resURL = curl_init(); curl_setopt($resURL, CURLOPT_URL, $url); curl_setopt($resURL, CURLOPT_BINARYTRANSFER, 1); curl_setopt($resURL, CURLOPT_RETURNTRANSFER, true); curl_setopt($resURL, CURLOPT_FOLLOWLOCATION, true); curl_setopt($resURL, CURLOPT_HEADERFUNCTION, 'curlHeaderCallback'); curl_setopt($resURL, CURLOPT_FAILONERROR, 1); $x = curl_exec ($resURL); //var_dump($x); echo $intReturnCode = curl_getinfo($resURL, CURLINFO_HTTP_CODE); curl_close ($resURL); if ($intReturnCode != 200 && $intReturnCode != 302 && $intReturnCode != 304) { return false; } else return true; } or like this function if_curl_exists_1($url) …

Member Avatar
Member Avatar
+0 forum 4

Hello, I have a Ruby On Rails app online which uses devise authentication. I am trying to make an android app which make a request from ror app when a user try to log in (so the users can use same account from ror app). I heard that what I need is basic http authentication. Can you help me please with a functional example, or some useful links? All the examples found on the internet were useless. Thanks

Member Avatar
Member Avatar
+0 forum 1

I'm looking for a process I don't know weather it will work or not. I want to connect a computer to a website using `HTTP Protocol`. Is this possible ? How we can communicate a system having a `static IP Address` from a `HTTP Protocol` ? Is there any way to do it ?

Member Avatar
Member Avatar
+0 forum 5

Hello everybody ! There is an issue that's driving me realy crazy. I'ts about Adobe DreamWeaver and adding MySQL Data Connection (For document type:PHP). When I input infrmation about: -Connection name -MySQL server(remote server) -username -password Which all of those infos are correct i receve a http error saying: "HTTP error code 405 method not allowed" Propablly the mention method is the POST method. More about that error you can read on http://www.checkupdown.com/status/E405.html Did anyone have such a problem and knows the solution of this ?

Member Avatar
Member Avatar
+0 forum 1

"httpError: The Http Transport returned a 0 status code. This is usually the result of mixing ajax and full requests. This is usually undesired, for both performance and data integrity reasons." I am getting this error in my web page form... how to get rid of this message ............

Member Avatar
Member Avatar
+0 forum 1

Hi I attached here a code that i have a problem with. the function CheckStatusCode() suppose to connect to uri and check the http response status. it should display on the screen the status received. usually the status is "OK" (200). but for instance if the page doesn't exist the status should be "NOT FOUND" (404). the function works fine with uri that returns status 200. in any other status, i.e 404, the method throws exception. basically i can parse the the exception message and understand the status from there, but i don"t see a reason to do so. please …

Member Avatar
Member Avatar
+0 forum 3

Hi how do i create an application in ASP.net C# for HTTPWebRequest, HTTPWebResponse to send and get data back

Member Avatar
Member Avatar
+0 forum 3

A web server is used to process http request and send a response back to the client browser. I was wondering how does a client browser send a http request to the web server? Is it done via socket connection? Which socket connection is used to establish a connection with tomcat web server? Is it using Java sockets or the client browser have it's own socket to establish a connection with the Tomcat server? Or does the client browser uses the socket provided by the operating system to establish a connection to the Tomcat server?

Member Avatar
Member Avatar
+0 forum 2

I know that for every HTTP request the request carry some request header parameters like Accept, Accept-Languate etc.. I understand the general meaning of those parameters. But how server utilizes that information, that is not yet unclear. For example, The request header "Accept" header means "Content-Types that are acceptable". And for example I have set "Accept": "text/html". What server will do with that information? It understands that client only accepts "text or html" response only and hence it will avoid to send other type of responses for that request. Is it like that? Am I right? Please help me to …

Member Avatar
Member Avatar
+0 forum 1

public class SendMessage { public static void main(String[] args) throws UnsupportedEncodingException { //String strMsg=java.net.URLEncoder.encode("This is API msg", "UTF-8"); callURL("https://api.mVaayoo.com/mvaayooapi/MessageCompose?user=user@gmail.com:1111&senderID=TEST SMS&receipientno=9999999999&dcs=0&msgtxt=msg&state=1"); } public static void callURL(String strURL){ System.out.println(" URL is :"+strURL); try{ URL obj = new URL(strURL); HttpURLConnection httpReq = (HttpURLConnection)obj.openConnection(); httpReq.setDoOutput(true); httpReq.setInstanceFollowRedirects(true); httpReq.setRequestMethod("GET"); String iStatus = httpReq.getResponseMessage(); System.out.println("iStatus: "+iStatus); } catch (MalformedURLException ex) { ex.printStackTrace(); }catch (IOException ex) { ex.printStackTrace(); }catch(Exception e){ e.printStackTrace(); } } }

Member Avatar
+0 forum 0

Hi there, I am trying to access a 3rd party Apache/Axis web service where I am required to submit an HTTP header with username and password attached. I have added the service/reference no problem using the VB.Net add service reference. this has given a local object for their service. I have already tried what feels like hundreds of ideas from online, none of which have done what I wanted and alot are very advanced and I am struggling to understand how to implement the code. This is the code I have been trying so far which returns the error from …

Member Avatar
+0 forum 0

What is effect of specifying http content-length that is larger than the actual body length? This is because I am using libcurl to make http-post massages, and I dont want have a case whereby the specified content-length is smaller than the actual body length.

Member Avatar
Member Avatar
+0 forum 1

Hello All, I have been developing a website that has a secure area. At the beginning of the secure page I wrote a scriptlet to check whether the user is logged in. I want to take this scriplet and put it in a javabean. Could any of you guys suggest a way of doing this? String clientIP = request.getRemoteAddr(); //get remote address String clientHost = request.getRemoteHost(); //get client host int hashVal = (request.getRemoteAddr() + request.getRemoteHost()).hashCode(); //create hash if(session.getAttribute("hsh") != null){ //hash was not created for this session.. if(Integer.parseInt(session.getAttribute("hsh").toString()) != hashVal){ //hashes should be the same response.sendRedirect("./login_page.jsp?error=2"); //the hashes dont match …

Member Avatar
Member Avatar
+0 forum 1

I have a heat map application on OpenLayers (using XAMPP 1.8.0 and MySQL) where user enters two date and time intervals and selects whether he/she would like to view all the data between those two datetimes or view them based on hourly/daily/weekly/monthly intervals. However, when I type in two date and times as input and try to visualize the data, I can only visualize all the data between those two intervals. Whenever I choose hourly, daily, weekly etc from my HTML drop down menu and press fetch queries button, I get an Error in Ajax POST message. What could be …

Member Avatar
Member Avatar
+0 forum 7

The End.