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

I would like to setup a CA and get it certified by MS,Firefox, Chrome etc.

What are the procedures? I have gone through this http://www.webhostingtalk.com/showthread.php?t=855654.

Can anyone provide details?

Thanks
0
I'm getting two different post responses when we slightly change some code.

OPTION ONE: It sends back two messages.

When we use this code in our controller to send the post data, we get back two messages.

            $http({
                method: 'POST',
                url: 'https://crucore.com/api.php?a=contact',
//                headers: {
//                    'Content-Type': 'application/x-www-form-urlencoded'
//                },
//                data: $.param($scope.formData) //param method from jQuery
                data: $scope.formData

            }).success(function (data) {

                console.log(data);
                if (data.success) { //success comes from the return json object
                    $scope.submitButtonDisabled = true;
                    $scope.resultMessage = "Thanks! We have received your message.";
                    $scope.result = 'bg-success';
                } else {
                    $scope.submitButtonDisabled = false;
                    $scope.resultMessage = "Sorry, there's an error in processing your request. Please try again.";
                    $scope.result = 'bg-danger';
                }
            });

Open in new window

api.php?a=contact      200      xhr      angular.js:11362      612 B      345 ms      
api.php?a=contact      200      xhr      Other      612 B      184 ms
     

OPTION TWO: It sends back one message.
But when I change the code to this, it only sends one message back.  The only things that changed are in the section where the lines are commented out.

            $http({
                method: 'POST',
                url: 'https://crucore.com/api.php?a=contact',
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded'
                },
                data: $.param($scope.formData) //param method from jQuery
//                data: $scope.formData

            }).success(function (data) {

                console.log(data);
                if (data.success) { //success comes from the return json object
                    $scope.submitButtonDisabled = true;
                    $scope.resultMessage = "Thanks! We have received your message.";
                    $scope.result = 'bg-success';
                } else {
                    $scope.submitButtonDisabled = false;
                    $scope.resultMessage = "Sorry, there's an error in processing your request. Please try again.";
                    $scope.result = 'bg-danger';
                }
            });

Open in new window


But when I do it this way, it only returns one.

api.php?a=contact      200      xhr      angular.js:11362      612 B      345 ms      

Any idea why the first one returns the code of "other"?  My understanding is the first option is the "official" way to do it when using AngularJS.

Thank you.
0
We connect to our Netbotz appliances' web GUIs over HTTP and HTTPS. On some of them the webpage won't prompt for a login when connecting over HTTP, so I can't use the GUI, even though it does prompt (and thus login) if I try HTTPS.

I've tried a number of laptops/desktops (all Windows 7 Enterprise) and an older laptop connects just fine over HTTP whereas my newer, recently Windows-updated laptop and desktop do not. All I get is the header of the webpage, with no prompt to login. HTTPS works fine.

Has anyone seen this before, or can point me in the right direction as to how to fix it? It's affecting my colleague too. It's not a network or a virus scanner issue because the older laptop connects fine and has the exact same virus scanner.

Unfortunately I cannot recall exactly when we first saw the issue.

Thanks.
0
I have this in the htaccess for a site:
<IfModule mod_rewrite.c>
RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.searchcommander.com/$1 [R=301,L]
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Open in new window


But I need just this one page: https://www.searchcommander.com/video-production/ to stay only http
What's the correct way to do that in the htaccess?
Thanks for any help.
0
I have a C# .net web site.
Not a compiled web app.

I have a page that has a possibility of 4 categories in the url
example...
I wouls like a way for there to be a a href o the site
That when the link is...
http://mysite.com/ResortConcept/Family/
That is would actually "use"
http://mysite/devpage.aspx?category=1
0
I am having error in autodiscover service with regard to http and srv method.

what is the purpose of http and SRV methods used in autodiscover service with regard to connectivity.
0
Hello Experts,

I have a client that upgrade a machine that we installed that was running Windows 7 to Windows 10, well luck of the draw now the system shows connected to the network but have no web browsing capability. I am able to ping everything including anywhere on the internet. I have reset the winsock, I have uninstalled and reinstalled the network card with no changes. When trying to use the windows troubleshooting I get a response back of "One or more network protocols are missing on this computer" I have Deleted the winsock & winsock2 registry entries and tried to install the protocol back by going into the Network Card properties and install the tcp/ip protocols but get "Could not add the requested feature. The error is: This program is blocked by group policy. For more information, contact your system administrator." Well this machine is a stand alone machine and the user is an Admin on the machine and there is no other user.

Thank you in advance,
Bo Borchardt
0
Hello!

I am trying to complete a HTTP post request via a stored proc.

The query returns the error: sp_OAMethod http status  407 which leads me to think proxy issues and that the request is never making it to the server.  The prints are in there for troubleshooting and it seems to break after step 5.

Any help would be greatly appreciated


Thanks!

CODE---------------------
USE [db]
GO
/****** Object:  StoredProcedure [dbo].[HTTP_POST]   ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[HTTP_POST]( @sUrl varchar(8000)='https://api.apiurl/oauth/token?grant_type=refresh_token&client_id=
xxxxxxx&client_secret=XXXX-XXXX&refresh_token=XXXXXXX', @response varchar(8000)
out)
As


Declare
@obj int
,@hr int
,@status int
,@msg varchar(255)
print @msg


exec @hr = sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT
if @hr <> 0 begin Raiserror('sp_OACreate MSXML2.ServerXMLHttp.3.0
failed', 16,1) return end

print '1'

exec @hr = sp_OAMethod @obj, 'open', NULL, 'POST', @sUrl, false
if @hr <>0 begin set @msg = 'sp_OAMethod Open failed' goto eh end


print '2'

exec @hr = sp_OAMethod @obj, 'setRequestHeader', NULL, 'Content-Type',
'application/x-www-form-urlencoded'
if @hr <>0 begin set @msg = 'sp_OAMethod setRequestHeader failed' goto
eh end


print '3'

exec @hr = sp_OAMethod @obj, send, NULL, ''
if @hr <>0 begin set @msg = 'sp_OAMethod Send failed' goto eh end

print '4'

exec @hr = sp_OAGetProperty …
0
Hi,
We have a couple of XP's machines that we are not quite ready to upgrade to windows 7 or 10 but we need to to have Citrix Receiver to run on them for testing, we installed 4.1 version it runs but only in https, there is registry changes that make it work with http but been searching the webs but nothing on how to change them in Windows XP.
Anyone know how to do this?
Thanks,
Jimmy
0
I want to find a program that I can have external clients upload/download files via http URL web.

I want to make this as easy for them as possible without using any ftp clients such as WinSCP.

I would like them to type in a URL in their browser, and login and they would be able to upload files or download files.
Basically this would be web based front end.

Can any recommend any programs.
Thanks
0
I have an HTML page, which includes an accordion with a list of slider questions in each panel. I hope the page could look like this:

Desired look for the panel
It’s content was build dynamically by AngularJS. I use $http.get() to an external API to get an array of data to build the accordion and sliders. (in the form of a JSON request).

I also have two JavaScript plugins in my file to make the accordion and slider look prettier.

After the data was loaded into my page (about 1 to 2 seconds), I got the basic structure of the page with the correct data in it.

However, the sliders and accordion looked the same as those without using the plugins. Those plugins are not working on my dynamically generated elements.

The page looks like this:

Current Panel
The code for the panel building looks like this:

                            <div class="col-md-9">
                                <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                                    <!--groups-->
                                    <div class="panel panel-default form-group" ng-repeat="group in accordion.groupQues">
                                        <div class="panel-heading" role="tab" id="heading{{group.gID}}">
                                            <h4 class="panel-title">
                                    <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" 

Open in new window

0
I would like to download a csv file from this website and save it to C:\temp.  I typed this.

H:\>wget64 --user="aaa" --password="aaa" "https://website.com/files/download?type=144  --auth-no-challenge --content-dispostion -q$ -P C:\temp

I got the response below, but there was no file in C:\temp.

--2016-01-21 12:28:34--  https://website/files/download?type=144
%20%20--auth-no-challenge%20--content-dispostion%20-q$%20-P%20C:%5Ctemp
Resolving website.com (website.com)... IPAddress
Connecting to website.com (website.com)|IPAddress|
:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 189 [text/html]
Saving to: 'download@type=144%20%20--auth-no-challenge%20--content-dispostion%20
-q$%20-P%20C%3A%5Ctemp'

download@type=144%2 100%[===================>]     189  --.-KB/s    in 0s

2016-01-21 12:28:35 (541 KB/s) - 'download@type=144%20%20--auth-no-challenge%20-
-content-dispostion%20-q$%20-P%20C%3A%5Ctemp' saved [189/189]
0
I am running a number of api scripts off of a single server. A number of outside sites access these scripts from different domains.

When I use this command, it works fine.

Header add Access-Control-Allow-Origin "http://example1.com"

My online research told me that this was the way to set up the .htaccess file for multiple domains, but it isn't working.

SetEnvIf Origin "^http(s)?://(.+\.)?(example1\.com|example2\.com | example3\.org)$" origin_is=$0
Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is


Can you provide assistance as to how this .htaccess file needs to be set up to provide cross browswer support?

Thanks.
0
I am using Entity Framework 5 and WCF data service.

I have the following method in the service1.cs

 public IList<Employee> GetEmployee()
        {
            using (ChinookEntities DBEntities = new ChinookEntities()) { 

            IList<Employee> ListOfEmployees = (IList<Employee>)(DBEntities.Employees.ToList());
            return ListOfEmployees.ToList();
        }

Open in new window

When I debug through WCF test client I am able to get the list of employees in the above IList<> ListOfEmployees, however after the method executes in the WCF Test client it gives the following error:

An error occurred while receiving the HTTP response to http://localhost:8733/Design_Time_Addresses/ChinookWCF/Service1/. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down).

Just for information I have another method GetData and that works fine from WCF test client and able to invoke the method.

public string GetData(int value)
        {
            return string.Format("You entered: {0}", value);
        }

Open in new window

Am I missing something.

Thanks in advance.
0
Assuming I have a userID and Password, how do I download files from this website to my hard disk?
https://www.stoxx.com/document/CustomisedIndices/Current/Large%20Mid%20Indices

I have a Powershell script like this.  It's called Test2.ps1

$client = New-Object System.Net.WebClient
$client.Credentials = New-Object System.Net.NetworkCredential("icw.marketdata@thomsonreuters.com", "Reuters123")
$Client.DownloadFile('https://www.stoxx.com/document/CustomisedIndices/Current/Large%20Mid%20Indices/close_natp_20160113.csv','C:\Test\close_natp_20160113.csv')
$client.DownloadFile('https://www.stoxx.com/document/CustomisedIndices/Current/Large%20Mid%20Indices/open_l3700v_20160113.csv','C:\Test\open_l3700v_20160113.csv')

which I call with a batch file like this.  The batch file is in the same directory as the Powershell script and is called Test.bat

@ECHO OFF
PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%~dpn0.ps1'"
PAUSE

When I run this the files contain HTML and javascript rather than data.
0
Hello Experts,

I recently register a domain name lets say as example LINE.COM, please note I am using LINE.COM as an example.

I would like users to reach to it by typing www.LINE.COM. What do I need to do.

Right now I can browse to it by typing http://LINE.COM and not Http://www.LINE.COM
0
As I understand it .NET has some tools for enabling browser caching but what are our options with classic asp applications?  

I found a tool that works on older versions of windows similar to the way appache works with .htaccess files but it won't work on Windows 2012 which is what we have running at the moment.

Here is that tool: http://www.helicontech.com/articles/make-your-websites-work-faster/

Thanks
0
Hi;

I am trying to understand SSO concept.

Here in the link, http://lersse-dl.ece.ubc.ca/record/285/files/websso_usability_journal.pdf at page 7, Figure 1a, I see a flow that the client starts the initiation via IDP and it is redirected to IDP and authentication is done.
1) At this point, has the authentication been done?
2) and, why is there another redirection to RP (4)?

My other questions are that in https://en.wikipedia.org/wiki/SAML_2.0#Web_Browser_SSO_Profile at section Web Browser SSO Profile,
3) I couldn't differentiate the order in sections between SP POST Request; IdP POST Response and SP Redirect Artifact; IdP Redirect Artifact. Can you explain?
4) And comparing to the above question 3, is RP representing SP?
5) And finally, is the SSO authentication ordered always as from Client->IDP->SP? Or can this order be changed?
0
I am using the url rewrite module 2.0 in IIS7 to redirect all http requests to https requests.

<rule name="http to https" enabled="false" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}:{R:1}" />
</rule>

It works great but now it doesnt work for old static links.  For example, the url:  http://mywebsite.com/findme  used to work but with the rule it doesnt redirect it to https://mywebsite.com/findme   What is the best way to fix this for static links?  Do i tweak my current redirect rule or should a create a new rule and give it higher priority. IF so what should the new rule look like. I have taken many guesses with no luck.
0
I am having issues with the config for a sip phone (Aastra 6737i) and would like to manually download the config and look at it.

The basic settings I have are - directly from the phone;
  Download Protocol - Http
  HTTP Server - FQDN
  HTTP Path - aastra6737i
  HTTP Port - 80

I also know the MAC address of the phone and the SIP Username and Password

After some reading, I tried to use the Powershell "invoke-webrequest" command to download the file.

I have tried two different ways to pass the Username & Password.
Please Note - I did not write this code, but copied it from examples I found substituting my SIP username and Password

Method One
        $username = "username"
        $password = "password" | ConvertTo-SecureString -asPlainText -Force
        $cred = New-Object System.Management.Automation.PSCredential($username,$password)
        invoke-webrequest -outfile mac.cfg http://fqdn/aastra6737i/mac.cfg -Credential $cred

Method Two
       $user = 'username'
       $pass = 'password'

       $pair = "$($user):$($pass)"

       $encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair))

       $basicAuthValue = "Basic $encodedCreds"

       $Headers = @{
             Authorization = $basicAuthValue
        }
        invoke-webrequest -outfile mac.cfg http://fqdn/aastra6737i/mac.cfg -Headers $Headers

 === Again I did not write these scripts, and I am NOT a programmer.

However regardless of the …
0
Hello Expert Exchangians.

I am trying to inquire how we can completely disable http communications and enforce https on all SharePoint services,
So far I am aware of
a. IIS where there is
--- Webserver
   ---Default-Website - running only on port 80
   ---servername-hostname - where it is a main /SitesPages/Home.aspx - running only on port 80
   --- SharePoint Central Administration v4 - running only on port 13723
   --- SharePoint Web Services - running on http(32843) and https(32844)
      +++ we have seven different subpages containing random generated 32 character name pages running on the same ports as webservices
      +++ SecurityTokenServiceApp - running on the same ports as Web Service
      +++ Topology - running on the same ports as Web Services.

b. is there anything else we need to be aware off?

c. we have AD intergration is there a way to change this to encrypted AD to SP2010 communiacation as well.

d. all databases are on separate SQL server, is there a way to entyrp traffic between SQL and SP2010 as well.

e. we have mail server setup thru central admin console and inside IIS global settings is there a way to set that up as well to be encrypted.

f. am I missing anything else.

Appreciate all the help I can get

Krzysztof

Happy Holidays
0
Hello

I am trying to edit a feed that is created for my blog extension. I want to place a line break after each tag (there is another problem with the feed and bugs are hard to find when it is all on one line) but I cannot get it to work. I have tried /n but this just outputs /n.

It is not echo so I am not sure this is correct to use. Here is the code

            $output  = '<?xml version="1.0" encoding="UTF-8" ?>';
            $output .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">';

Open in new window


I have tried

            $output  = '<?xml version="1.0" encoding="UTF-8" ?> /n';
            $output .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> /n';

Open in new window


this just outputs

<?xml version="1.0" encoding="UTF-8" ?>/n<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> /n

I have also tried

            $output  = '<?xml version="1.0" encoding="UTF-8" ?>';
			$output  = "\n";
            $output .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">';
			$output  = "\n";

Open in new window


This makes these lines disappear and replaced with a single line break.

Can someone please give me some advice?

Many Thanks
0
We are currently having difficulties access a site we have that is configured for secure (443) access. A short description of the topology. We have a server located in our DMZ lets call it cpd-cpd-web06.contoso.com it is acting as a web server for https://healthcare.contoso.org. We are able to ping the address for  https://healthcare.contoso.org both internally and externally however when we try and reach  https://healthcare.contoso.org we only receive a "This webpage is unavailable" Please assist. Feel free to ask any questions.
0
i was playing around with my router configuration page and changed it to https. now I can't log on because it gives a certificate error. How do I log in? it is a linksys
0
I have a sub domain that I would like to forward to another domain. is this possible? I tried using a cname, but haven't had any luck. Example mysub.mydomain.com needs to forward to anotherdomain.com.
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
>