HTTP Protocol

The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. Hypertext is structured text that uses logical links (hyperlinks) between nodes containing text. HTTP is the protocol to exchange or transfer hypertext. HTTP functions as a request-response protocol in the client-server computing model. HTTP is designed to permit intermediate network elements to improve or enable communications between clients and servers. HTTP is an application layer protocol designed within the framework of the Internet Protocol Suite; it presumes an underlying and reliable transport layer protocol.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

since we use Ubuntu 16 and Apache 2.4.18 the Status Code responded from apache is now:

200 200

Open in new window


instead of

200 OK

Open in new window


Our application is waiting for the "OK" and doesn`t work correctly with the status code "200 200".
Is there a way to tell apache to respond with "200 OK" again?

Many thanks in advance!
Roland
0
Hi
i am trying to get files name list from a folder which is on remote server using vb6.0
vb6.0 application will run on clients machine...
is there any possibility using http..?

Please note : there is no FTP, i dont have flexibility to use ftp, (only i need to use http or any other option except ftp)

kind regards
0
On a network, internet connection is limited this way; once you send data and receive reply , isp immediately resets the connection. HTTP access is possible, but HTTPS is seemingly not. Do I have chance to have HTTPS access over this network ? Do you have any idea ?
0
Hello,

I am developing a php web application that has a login system. The user password is hashed using a code generated salt. Inside my web app, I require API access of an external site and that needs some login credentials to be passed. I am planning that the username and password for this external site will be same as the login credentials of my web app, so that I can query the user details out of my database and send them over to the API request. However, the password in the database is hashed and is thus invalid to be sent to the API call. I thought I can save the password in a session variable, but that is indeed a very bad idea. So, I am lost and I need some suggestion on how to get this working.

Any help is much welcome.

Thanks in advance.
0
Hi All,

I work for a company that doesn't have internet access.  I'd like to use some open source software, but it because it has loads of internet based content embedded - e.g. google fonts.  It takes ages to load.

Would it be possible to change all links to local

e.g.

http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff 

To

/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff


Many thanks
D
0
I have an edit page, when i click submit i would like to have a message pop up dependent on the response from the server whether it is successful or error .

<script type="text/javascript">

 

  var app = angular.module('app',[]);


  app.controller('decontroller', function($scope,$http){
    $scope.edit=<?php echo json_encode($aggregate_data_view);?>;

    
    $scope.processRequest = function()
    {
    console.log("hey i'm submitting!");
    console.log($scope.edit);


    $http.post('<?php echo site_url("transport/saveData")?>', $.param($scope.edit)).

    
    success (function(data){
    
    alert("Your request is been processed...") }).

    
    error (function(data){ 
    
    alert("There was an error processing your request")
    });

    };

     $http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded;charset=utf-8";
     
   });


</script>

Open in new window

0
Microsoft's documentation states that it may return either the Host name or the IP address but it doesn't say how the framework determines which one to return. I'm having a problem in a production environment where Url.Authority returns the host name sometimes and at other times returns the IP address.

I need to ensure that it returns the host name every time. I've created a workaround for the moment but its not ideal, I need to figure out how to fix this.

I'm using the .NET Framework version 4.6.1 in all environments.
0
 <form method= "post" action= "edit.php">
            <div class="panel-body">
              <div class="row">
            
                <div class="col-md-3 col-lg-3 " id= "show"> <img alt="User Pic" src= <?php echo "../profilepic/" .$path; ?> class="img-circle img-responsive">
                <button class="btn btn-sm btn-info" id="opener"><i class="glyphicon glyphicon-edit"></i></button>
                 </div>
                <div class=" col-md-9 col-lg-9 "> 
                  <table class="table table-user-information">
                    <tbody>
                      <tr>
                        <td>First name:</td>
                        <td><span id= "keep"><?php echo $firstname;?></span><input id= "change" value= "<?php echo $firstname;  ?>" style= "display:none;" name="name"></td> 
                      </tr>
                      <tr>
                        <td>Last name:</td>
                        <td><span id= "keep5"><?php echo $lastname;?></span><input id= "change5" value= "<?php echo $lastname;  ?>" style= "display:none;" name="lname"></td> 
                      </tr>
                      <tr>
                        <td>Date of Birth</td>
                        <td><span id= "keep1"><?php echo $birthday; ?></span><input id= "change1" value= "<?php echo $birthday; ?>" style= "display:none;" name="bday"></td>
                      </tr>
                   
                         <tr>
                             <tr>
                        

Open in new window

0
This is giving me a headache and I can't figure out what is wrong.

I have a userform which I submit with a submit button.
One of the textboxes is called 'client'.

On the next page, I get the following error message:

Notice: Undefined index: client in E:\xampp\htdocs\sales_insert2.php on line 13

when I put the form variable into a php variable:

$client = htmlspecialchars($_POST["client"]);

Open in new window


What is wrong?
0
I had this question after viewing Computer crashes, following error message in event manager.

When opening Component Services and the identified service the Security settings are greyed out and cannot be changed.
0
Hi Guys,
I have an Internet Information Services web server, and it was attacked by ransomware.
Honestly I don't even know how can the hacker actually infect the server just by using the port 80.

Since this is a production server I just restored an earlier snapshot and it is now back up and running.

The thing is that now management is requesting a postmortem investigation, and a report stating if there was client information compromised.

We do have a completely different server (SQL Server) that the WEB Server uses to get/save client data, but as far as I can tell the SQL server was not compromised.

Now since I had to restore the snapshot in a rush or otherwise all our clients would be looking at a pretty error page, how can I find some conclusions as to the postmortem report, to answer some questions like:

How did this happen?
Did the attacker penetrated through port 80?
Was any information in the SQL Server compromised?
0
Heyas,

Are their any applications out there to Test/Monitor whether the maximum number concurrent HTTP requests per host is exceeded it's limit.

As specified in this MSDN article https://msdn.microsoft.com/en-us/library/fb6y0fyc.aspx

Thank you.
0
I am the beginner in this technology and its been 8 hours straight and i am not able to figure out the issue, the first thing i am not understanding is about first 3 tags,

soapenv:Envelope
soapenv:Header
soapenv:Body

the request which is generated by C# does not include "soapenv:"
More over the exception "Data at the root level is invalid".
I have tried the other way, directly passing the static data by XML and got the response which means that my credentials and server is working fine.  But now i have to pass values dynamically, so gotta use C# way. Any help will be appreciated and I shall be really grateful. Its getting pain in the a** -_-

Thanks in advance.

The XML request is

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://www.juniper.es/webservice/2007/">
<soapenv:Header/> 
<soapenv:Body> 
<HotelAvail> 
<HotelAvailRQ Version="1.1" Language="en"> <Login Email="user@mydomain.com" Password="pass" /> 
<Paxes> 
<Pax IdPax="1"> 
<Age>50</Age>
 </Pax> 
</Paxes> 
<HotelRequest>
<SearchSegmentsHotels> 
<SearchSegmentHotels Start="2013-08-20" End="2013-08-22" DestinationZone="1953"/> <CountryOfResidence>ES</CountryOfResidence> 
<Boards> 
<Board Type="AD"/> 
</Boards> 
</SearchSegmentsHotels> 
<RelPaxesDist>
 <RelPaxDist> 
<RelPaxes> 
<RelPax IdPax="1"/> 
</RelPaxes> 
</RelPaxDist> 
</RelPaxesDist> 
</HotelRequest> 
</HotelAvailRQ> 
</HotelAvail> 
</soapenv:Body> 
</soapenv:Envelope>

Open in new window


in C# i made like this:


Open in new window

0
Hi Experts

Can anyone tell me how  are non-existent links are coded, in general, and in PHP?

By Non-Existent Links, I mean how EE does it for example:

https://www.experts-exchange.com/questions/28983605/Determining-Project-Cost.html

I do not think that there really is a 28983605 directory, and a Determining-Project-Cost.html static file, since  these are created dynamically? In WordPress, they call it PermaLink.

Thank you
0
I want that if someone links to our wordpress site and somewhere in the query string there is aaa=<value> then for all external links they are re-written to include that at the end, also the <value> needs to be preserved if the user changes pages and moves around the site, so I'm guessing it needs to be added to the session.

How is this possible?
0
how to automatically send a file to a ftp server every 6 hours?
0
We have an in-house FTP server running FileZilla Server which has some limits/issues and now we are looking for an alternative solution that meets the following requirements
- Not cloud based. It has to be installed on our own computer in our company.
- When our clients upload files, they do not need any client software to be installed on their computers.
- Does not use FTP protocol.

Any suggestions?

Thanks!
0
Experts,

Do HTTP POST packets appear in a broadcast?

Suppose client-1 10.10.10.50/24 tries to authenticate to server 10.10.20.50/24 via HTTP.  
client-2 on 10.10.20.51/24 is sniffing the wire. Will the hTTP POST be broadcasted to client-2?
0
Need to retrieve and save or display an image file (usually .jpg or .pdf) returned by a call to a secure outside server.  I'm used to retrieving data arrays in this way (content-type application/xml and application/json), but have never had to deal with a file or image (content-type application/octet-stream).

I can get the return, but don't know how to process it using PHP.  Here is an example of the returned info:

HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Length: 228863 Content-Type: application/octet-stream Expires: -1 Server: Microsoft-IIS/7.5 Content-Disposition: attachment; filename=picture.jpg X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Fri, 28 Oct 2016 19:43:37 GMT ����JFIF``��XExifMM*GFGIc�i2��>� ... [228K of data].

Can anyone provide pointers?

Thanks!
0
Greetings.

I am converting an Applet into a Desktop Application, and one of the internal program's services includes a SOAP client, designed to send information to a remote server. Here is a piece of the code in charge of this process:

package my.package.app.utils;

import my.package.app.main.MainClass;
import my.package.app.org.json.JSONObject;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.logging.Level;
import java.util.logging.Logger;

public class SoapClient {
    
    public static JSONObject callMethod(String path, String method, Object... args) {
        HttpURLConnection connection = null;
        String            data       = null;
        try {
            data = parseXML(method, args);
            
            MainClass.debug("Making http POST connections to : " + path);
            
            URL           u  = new URL(path);
            URLConnection uc = u.openConnection();
            connection = (HttpURLConnection) uc;
            
            connection.setDoOutput(true);
            connection.setDoInput(true);
            connection.setRequestMethod("POST");
            

Open in new window

0
Hello Experts.

    Websocket-client connects to websocket-server through haproxy.
    Sometimes transmission works, sometimes not.
    Websocket-client is based on python2.6/site-packages/websocket_client-0.7.0-py2.6.egg/websocket.py
    Websocket-server based on c++ library.
    Haproxy version is 1.5.x

    As you can see, websocket client reuses connection when python-script is reentered.
    Note, if not to reuse the connection, there are no errors.

    How get rid of this error?
    #must we put here something to "flush" the "mysterios" ws "buffer"? ( See this comment in script )

    Script, error-trace, haproxy.cfg and log are attached.

Thank you.
script-and-error.txt
haproxy-cfg-and-log.txt
0
I have a web site hosted on Server2012 R2 and every page served has an HTTP Response header of "no-cache". I have set the "Common http response headers" in IIS to expire after 7 days and added a "Cache-Control max-age = 604800" NV pair to the http response headers, but I still see "no-cache" on every page.
Any clues ?
0
Hi,
I am setting the following header in response of my spring web application :
         response.setHeader("Strict-Transport-Security","max-age=31536000");


I load my web application using https://localhost:4430/notes
4430 is the https port i have specified for my embedded jetty server...

I also see this header when my application page is loaded...
Now when i remove the s from this url i was expecting that it would auto hit https url But instead the url was aborted by the firefox browser :
All i see in the net panel is :
Screen-Shot-2016-10-05-at-7.06.50-PM.png
These are the response headers when the url is loaded with https://
Screen-Shot-2016-10-05-at-7.10.14-PM.pngWhat could be the reason for this ?

Thanks
0
Is there a guide or reference some place that will interpret the HTTP accept header?

Here are two examples

application/json, text/javascript, */*; q=0.01
*/*;q=0.5, text/javascript, application/javascript, application/ecmascript, application/x-ecmascript

Thanks
0
HI,
In the RFC: https://tools.ietf.org/html/rfc7230#page-22
There is a line : obs-text       = %x80-FF
What does this mean ?

Thanks
0

HTTP Protocol

The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. Hypertext is structured text that uses logical links (hyperlinks) between nodes containing text. HTTP is the protocol to exchange or transfer hypertext. HTTP functions as a request-response protocol in the client-server computing model. HTTP is designed to permit intermediate network elements to improve or enable communications between clients and servers. HTTP is an application layer protocol designed within the framework of the Internet Protocol Suite; it presumes an underlying and reliable transport layer protocol.

Top Experts In
HTTP Protocol
<
Monthly
>