Go Premium for a chance to win a PS4. Enter to Win

x

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

This is a great video (however the links no longer work):
https://www.youtube.com/watch?v=Usydlsc2uWE
I need a real life example of IF someone clicks on a bad link via email or whatever avenue how the redirected website collects their credentials. Anyone have any good ones?

TIA!!
0
Hire Technology Freelancers with Gigs
LVL 11
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

I have a groovy script that makes an API call to a rest api and it gets a result. The problem is that I need to sent a file instead of a URL for the final requirements. I am not sure how to do that.

So, I need to change:
FROM: map["file_url"] = "https://i.ytimg.com/vi/JPA_rzHDy6o/maxresdefault.jpg"
TO: map["file"] = "@Nda.pdf"

I think this is a much more difficult situation, to send a file instead of a URL. I would suspect, it starts out trying to understand the def client = HttpClientBuilder.create().build() and how this api supports sending a file.

Any pointers on how to do this?

I also suspect that post.addHeader("content-type", "application/json") may not work and instead another header may have to be used. Perhaps multipart/form-data.



Script that works


import groovy.json.JsonSlurper


@Grab(group='org.apache.httpcomponents', module='httpclient', version='4.5.2')

import groovy.json.*

import org.apache.http.client.methods.*
import org.apache.http.entity.*
import org.apache.http.impl.client.*



def map = [:]
map["message"] = "Hi There"
map["title"] = "Title"
map["subject"] = "sub"
map["test_mode"] = "1"
//map["file"] = "@Nda.pdf"
map["file_url"] = "https://i.ytimg.com/vi/JPA_rzHDy6o/maxresdefault.jpg"
map["signers"] = [name: 'bob', email_address: 'ed_fletcher@aol.com']

def jsonBody = new JsonBuilder(map).toString()
println jsonBody


def url = 'https://APIKEYHERE:@api.hellosign.com/v3/signature_request/send'
def …
0
Hi,

Specs:
Server 2016
Java (32bit) Version 8 Update 151

We installed Atlassian Confluence on premises and would like to communicate to it using SSL.
Atlassian has a nice manual that we carried out.
We have a wildcard certificate (Comodo) that we wanted to use for this.

So, we created a keystore, imported the certificate (.crt) and pointed the server configfile to it:

<Connector port="8443" maxHttpHeaderSize="8192"
                   maxThreads="150" minSpareThreads="25"
                   protocol="org.apache.coyote.http11.Http11NioProtocol"
                   enableLookups="false" disableUploadTimeout="true"
                   acceptCount="100" scheme="https" secure="true"
                   clientAuth="false" sslProtocols="TLSv1,TLSv1.1,TLSv1.2" sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2" SSLEnabled="true"
                   URIEncoding="UTF-8" keystorePass="password"
				   keystoreFile="D:\somepath\atlassian"
				   />

Open in new window


Than we downloaded the root and intermediate certificates from Comodo and imported them in the cacerts store.
After that we restarted the Atlassian Confluence service.

We connect to Confluence using this url: https://app##.domain.local:8443

When we use Chrome we get an: ERR_SSL_VERSION_OR_CIPHER_MISMATCH error
When we use Firefox we get a: …
0
Hello,
Please help with srv_content_filtering of c-icap-modules 0.4 with Squid 0.5. It is not blocking anything. Is it not working by design or config is not correctly written? Thanks in advance.

Run:
c-icap-client -s srvfilter -resp www -f ./test.html -v -d 10

Open in new window


Config srv_content_filtering.conf:
Service srv_cfg_filter srv_content_filtering.so
ServiceAlias srvfilter srv_content_filtering

srv_content_filtering.Match denyhosts1 url /(sex|porn|www|ru)/i score=10
srv_content_filtering.Match denyhosts1 body /.*/i score=10

srv_content_filtering.Action block score{denyhosts1>1}

LogFormat mySrvContentFiltering "%tl, %>a %im %is %huo  [Scores: %{srv_content_filtering:scores}Sa] [ActionFilter: %{srv_content_filtering:action_filter}Sa] [Action: %{srv_content_filtering:action}Sa]" 
LogFormat myFormat "%tl, %a %im %iu %is %I %O %Ib %Ob %{1000}bph" 

AccessLog /var/log/c-icap/access_.log myFormat

Open in new window


test.html:
<html>
<body>
Test message
<a href="http://sex.ru/">Sex</a>
</body>
</html>

Open in new window

0
Hello , does anyone knwo how to transfer iPhone contacts and messages to Android phone without any loss ? i've tried many ways to transfer them , but always fail ,and i don't how to connect the differen operation phones ,
Pls
0
Hi,
how can I disable HTTPS and enable HTTP on apache Tomcat?
Based on my researches I have to modify the server.xml in the root folder of apache tomcat. Must I modify the connector? how?
For my Webapplication I'm connecting to the port 8443
<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="-1" shutdown="SHUTDOWN">
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at 

Open in new window

0
How to display html detail when clicking submipls
0
In internet explorer i am able to access a https site and download a file. i have to use an username and password to access the site first.
However, when i enter the URL and credentials in SSIS using the HTTP connection managerand press the test connection button,  i get the message:

The remote server returned an error: (401) Unauthorized.

Any ideas why this is happening. The username and password are correct.

Can i use an https site in a http connection?

Any help appreciated.

Thanks
0
Hi Guys,

We wrote an application that downloads json files down to about 80/90 client machines, we have reworked the mechanism but cant get it work correctly

I want to know how we could enable our server to send http status code responses then I can use the reponse.statusCode to see if a new file is available and make this whole thing a lot easier and more robust.
0
I have used 3 set of codes(where I used Indy10.6.2 component), which doesn't show any errors, but i can't able to send SMS through the code. Please help me to send me the Sms through Delphi code

The code which I used is...

const
  URL = 'https://api.bulksmsgateway.in/send/?username=****&hash=****&sender=TXTLCL&numbers=9198........&message=HISUNDAR';
  //URL = 'https://api.textlocal.in/send/?username=*****&hash=******&sender=TXTLCL&numbers=9198...&message=HISUNDAR';
  ResponseSize = 1024;
var
  hSession, hURL: HInternet;
  Request: String;
  ResponseLength: Cardinal;
begin
  hSession := InternetOpen('TEST', INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0);
  try
    Request := Format(URL,[Username,Password,Sender,Numbers,HttpEncode(Message1)]);
    hURL := InternetOpenURL(hSession, PChar(Request), nil, 0,0,0);
    try
      SetLength(Result, ResponseSize);
      InternetReadFile(hURL, PChar(Result), ResponseSize, ResponseLength);
      SetLength(Result, ResponseLength);
    finally
      InternetCloseHandle(hURL)
    end;
    showmessage(result);
  finally
    InternetCloseHandle(hSession)
  end





var
http : TIdHTTP;
IdSSL : TIdSSLIOHandlerSocketOpenSSL;
begin
 http := TIdHTTP.Create(nil);
 IdSSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
 try
  Http.ReadTimeout := 30000;
  Http.IOHandler := IdSSL;
  IdSSL.SSLOptions.Method := sslvTLSv1;
  Http.Request.BasicAuthentication := True;
 // IdSSL.SSLOptions.Method := sslvTLSv1;
  …
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

I am using the following query to get the CNAME record to load my site properly. The issue: The code below works ... but only if refreshed a couple of times.

Query ::

$recsDNS = dns_get_record($_SERVER['HTTP_HOST'], DNS_CNAME );
print_r($recsDNS);

Not getting CNAME records Properly, SOme times coming and some times Not.

If I use DNS_ALL :: After refreshing 3 to 4 times i am getting CNAME records.
0
I have a computer here that almost daily will stop bringing up web sites.  I've read more than I can even tell you and tried  everything I could to see some rhyme or reason why this is happening.  I can ping the address from a command line or the domain name.  Outlook isn't affected even though it's hosted offsite.  I can't access the web whether I put in  the Domain name or IP in the URL field.

I've flushed the ARP cache more than once, stopped and restarted dnscache, flushed dns, scanned for trojans, malware, etc.  And the only thing that will get it running again is to restart the computer or flush dns.  We recently went through a DNS server change but we kept the same IP address.  This also doesn't affect all the computers on the domain.

This is a Windows 7 Pro PC on a 2012 R2 domain.

I can't figure it out.  I am open for ideas.

Thank you!
0
I had this question after viewing XP driver for Iomega Zip with USB-to-serial converter.

Does this driver help you?
http://www.driverscape.com/download/iomega-zip-100-(usb)
The second download button.

That download was only basically a blank file.

Is there some other way to get an original driver as all leads I have found are for updates.

Thank you,
Grahame.
0
Hello all,

My site was working fine under the regular http site.  When i was force to move over to secure https site, ajax stop working.  I don't know what i am doing wrong.

the code is below:
				$.ajax({
				type: "POST",
				url: "update_location.php",
				data:'vlat='+locLat+'&vlong='+locLong+'&vTranId='+tranId,
				success: function(data){
					$("#city-list").html(data);
                                      
				}
				});

Open in new window

0
Dears, kindly note that I have to build  have to build the server which host the service as windows form application c#, and the client also is windows from application c#, so I tried to create new WCF Service Library, now how can I host it by the server and access it by the client?

the client have to connect to the server using http protocol as it is far from it,

so, is there a possible scenario for that?
0
Hi experts,
Im planning a multi-location Webserver cluster. I test how the browsers are handling multiple A records.

Test configuration was:
four A records to different IP addresses, only one was IP of a working webserver.

I used a Wireshark to see what is going on and there are the results from Windows 10 machine:
IE and Edge takes 7 seconds timeout for each A record. in the worse case when the A record of working webserver is on the last tried IP opening of page takes 21 seconds.

In Chrome and FireFox, each try takes 21 seconds, so worst case takes 63 seconds to open a page.

Once the page was opened, all browsers are holding the working IP so after initial connection it is fast, as usual.

Is there any other method that is faster on failover?
0
So, I have an IIS 7 web server that is getting flagged on a security audit because of a certificate name mismatch.  The problem is that you can browse to the public IP address (https://12.34.56.78) and you will get a certificate error, because that public IP address isn't on the certificate.  I have a rewrite rule in IIS to redirect https://12.34.56.78 to https://my.domain.com, but that doesn't happen until after the SSL handshake because SSL happens before http.

So, I am left with a few ways of fixing it:
1. Adding the IP address to the certificate, but apparenlty that is no longer going to be supported after this month (Oct. 2016).
2. Create a redirect/rewrite rule (either in IIS or on my SonicWALL firewall) that will rewrite the IP address to the URL before the SSL handshake.  I'm not even sure if that's possible.
3. I guess the third option would be to have IIS block the public IP address, and only respond to requests for the URL, but I'm not sure how to do that.

Anyone have any ideas?

Thanks
0
hello,
i've an open source program called lime for making survey, this program using apachi service in hosting not IIS how can i make the user access the url using https not http because we'll going o publish it?
0
Hello Experts,

Can someone please let me know how to How to Disable HTTP Strict Transport Security(HSTS) in Firefox, see image. Its driving me crazy

firefox
0
NEW Veeam Backup for Microsoft Office 365 1.5
LVL 1
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

I have installed java SpagoBI 5.2 app from .war successfully. I can start the SpagoBI from Tomcat 8 manager-app by double-click on SpagoBI on the list - works OK
When I use  the url: http://localhost:8080/SpagoBI - the app does not start - error 404 1008.
I spent some time for finding a reason but no success so far ..
Can somebody give me an advice ?
Thx
Stan
0
I set up a helpdesk solution with my company.  I would like to put a hostname of the site into the browser versus an IP address.  I set up an a record in DNS and a cname record pointing to the a record.  I set up a binding in IIS on the server the site is on and still can't connect to it.
0
Hello,
I am trying to create a rewrite rule that will filter an https url that was rewritten from http, and redirect it to another web server. The rewrite to HTTPS works, but the resulting https url generates a 404 error and does not redirect. I have been able to successfully test redirect url requests over port 80 but not https. Any suggestions?

Here is what I have so far:

RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]

I've tried

RewriteCond "https://%{HTTP_HOST}" "^/~username(.*)"
RewriteCond "%{SERVER_PORT}" "^443$"
RewriteRule "^/?(.*) "http://username.domain.com"

and

RedirectMatch "^/~username(.*)" "http://username.domain.com"
0
Using an imac
0
Hi, i have a website running IIS 8.5 (win 2012 R2) which runs over HTTP. i have a virtual directory within the same website which i want to secure over HTTPS.
i have both HTTP & HTTPS bindings for the website.

I have a citrix netscaler in front of the website which has been configured to perform SSL offload. the service on the netscaler which sends traffic to the website is both HTTP& HTTPS
I have disabled anonymous authentication and enabled basic authentication for the virtual directory, however i have not checked the 'Require SSL' box for the Virtual Directory.

When a client connects to the Virtual Directory via HTTP they get prompted for username & password and if they enter this, it lets them in, the same happens if the connct via HTTPS

What i need to do is redirecrt/ rewrite the HTTP connection just for the Virtual Directory so that it forces it to be a HTTPS connection. any ideas?

many thanks
0
before couple of weeks ago i was working for a company named as europac and i was continuously in contact with them but 2 days before i had sent them a mail i got a reply in the form of :-


Delivery to the following recipient failed permanently:

     hr@europacgroup.info

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain europacgroup.info by smtp.secureserver.net. [72.167.238.29].

The error that the other server returned was:
550 5.1.1 <hr@europacgroup.info> Recipient not found.  <http://x.co/irbounce>
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
>