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 have Python 2.7.9 running on a linux box. Now I need to start a http server to accept post requests with payloads (post body). However, due to some restriction, I cannot use pip to install some third party modules. Can I achieve this with Python out of the box?
0
If I send a text document from location A to location B over the internet via HTTP and there was someone in between sniffing the traffic with wireshark, would they be able to see inside the text document? I do not believe the wireshark capture would be able to see inside a file or can it?
0
Good Morning,

My Boss is asking for a monitoring tool so that we can verify that some of our traffic is flowing through HTTPS and not HTTP.   I know that fiddler exists, but we are having a hard time figuring it out.

Is there some monitoring tool that we can use/purchase that can be used to monitor traffic coming from a server?

Thanks,
0
Dear Experts,

We receive traffic on one of our sites that is from a url redirect, so there is no referrer information, which, of course, is not reliable in itself.

My question is - with JavaScript - is there any way, are there any methods, that can read/detect any information that the user arrived as a url redirect to our site - without passing values with the url?

I've exhausted everything I can think of, but wanted to get expert thoughts before we ask our redirecting partners to add params to their urls.

Thank you in advance.

Best,
--Mike
0
i have 2 public facing websites

1) http://company.com/
2) http://blog.company.com/

we want to use our main website as proxy of the second one.

http://company.com/blog  --> http://blog.company.com/

installed arr
installed url rewrite module

created a virtual directory in the main site and added reverse proxy rule, the below is my web config for that virtual directory

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://blog.company.com/{R:1}" />
                    <serverVariables>
                        <set name="HTTP_ACCEPT_ENCODING" value="" />
                    </serverVariables>
                </rule>
            </rules>
            <outboundRules>
                <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://blog.company.com/(.*)" />
                    <action type="Rewrite" value="/blog/{R:2}" />
               </rule>
            </outboundRules>
        </rewrite>
    </system.webServer>
</configuration>

Now, http://company.com/blog works fine.
http://company.com/blog/something is returning 404 error.

any help is much appreciated. i have very slim time lines for to finish this task…
0
Is it possible using client side only PHP code alone, to devise a secure login procedure?

If so, I would like to find a simplified example where a person would have to enter a password to bring up the page.
0
If I have a form post in a iframe and I want the form to submit to a new window/tab how would I do that so it submits outside of the iframe?
0
Hi,
I have a questions, Im trying to redirect 2 sites from http to https and have the rest of the site http. I've put down the code that Im using. Any suggestiosn?


RewriteEngine on
RewriteBase /

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/parks/golf-register.aspx
RewriteCond %{REQUEST_URI} ^/parks/tee-times-online.aspx
RewriteCond %{REQUEST_URI}   !^/(.*)\.(css|png|js|jpe?g|gif|bmp)$
RewriteRule ^(.*)$ https://www.example.com/parks/tee-times-online.aspx [R=301,L]



RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTP} =on
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

Thank you
0
Looking for a solution to the three errors showing up on PowerBroker communication attempts on Windows servers:
1.) UNEXPECTED EXCEPTION: certName is not valid or doesn't exist.
2.) UNEXPECTED EXCEPTION: The HTTP request was forbidden with client authentication scheme 'Anonymous'.
3.) UNEXPECTED EXCEPTION: An error occurred while making the HTTP request to https://pbwevent.paypalcorp.com/eventservice/service.svc. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.
0
I've had to switch to a new server and am getting the following error:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/langsyst/public_html/Lansco/index.php:14) in /home/langsyst/public_html/Lansco/index.php on line 15

The source code and the display of the source from the browser are attached.
index_code.php
index_src.txt
0
Hi Experts!

How to hide the .php  extension in URL ?

Thanks in advance
0
I need to redirect internal URL http://company.com to SharePoint subsite http://server1:81/subsitename.
I did AAM in SharePoint, but it redirects only to http://server1:81. Any thoughts?
Right now http://company.com is pointing to http://server1:80 via DNS settings.
0
My .htaccess is kinda like a route if you compare it to Laravel. I want to optimize this but not sure how.

Here is what I am doing:

RewriteRule ^dashboard/?$ index.php?section=dashboard [NC,L]
RewriteRule ^edituser/([a-zA-Z0-9]+)/?$ index.php?section=edituser&id=$1 [NC,L]
RewriteRule ^editroom/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/?$ index.php?section=editroom&id=$1&id2=$2 [NC,L]

Open in new window


So I am passing 1, 2 or possible 3 params on the URL. Anyway to make this less code and possible a catch all deal?

My URL would look like:

http://localhost/parm1/parm2/parm3 but not all have 2 or 3 parms

http://localhost/parm1
http://localhost/parm1/parm2
http://localhost/parm1/parm2/parm3

etc...
0
I have an internal spiceworks help desk portal.  I would like my users to just have to type http://helpdesk to access the portal.  I would like to setup a CNAME in dns to accomplish this.  The problem is the spiceworks portal is on port 9675.  I'm unsure how to setup this dns entry.
0
I have very limited knowledge of HTML and scripting.  I wanted to add the current temp to web page and found this code which works great.

<body>
<div id="res"></div>
<script>
function weather(o){
document.getElementById("res").innerHTML=o.query.results.channel.item.condition.temp+"° F"
}
</script>
<script type="text/javascript" src="http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location%3D%2202138%22&format=json&callback=weather"></script>
</body>

Open in new window

My question is how can I format  the font to Arial, specify a font color, size and align left, right center etc?
0
Hi,
   I am running this DISM tool for http-tracing on IIS win 2k8 R2.
Dism.exe /Online /Enable-Feature /FeatureName:IIS-HttpTracing..


Getting this error:-
 Info                  DISM   DISM Package Manager: PID=432 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine
Info                  DISM   DISM Package Manager: PID=432 Encountered the option "featurename" with value "IIS-HttpTracing" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
Info                  DISM   DISM Package Manager: PID=432 Encountered an unknown option "featurename" with value "IIS-HttpTracing" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
 Info                  DISM   DISM Package Manager: PID=432 Initiating Changes on Package with values: 5, 7 - CDISMPackage::Internal_ChangePackageState
Info                  DISM   DISM Package Manager: PID=432  Error in operation: (null) (CBS HRESULT=0x80070643) - CCbsConUIHandler::Error
Error                 DISM   DISM Package Manager: PID=432 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x80070643)
, Error                 DISM   DISM Package Manager: PID=432 Failed processing package changes - CDISMPackageManager::ProcessChanges(hr:0x80070643)
Error                 DISM   DISM Package Manager: PID=432 Failed ProcessChanges. - CPackageManagerCLIHandler::Private_ProcessFeatureChange(hr:0x80070643)
, Error                 DISM   DISM Package Manager: PID=432 Failed while …
0
Hi

I have a Azure Virtual Machine VM with fixed IP , say 123.456.789.101
I want this Azure VM to host more than one website, the different websites having different domains, but not sure if this can be done

Can I have more than one domain map to this single Azure Virtual Machine IP, and the different domains to different virtual directories/sites on the same Azure  Virtual machine?

So I have 3 domains say
www.abc.com    - this should go to site one say 123.456.789.101/abc
www.def.com  - this should go to site two say 123.456.789.101/def
www.ghi.com - this should go to another site say 123.456.789.101/ghi

I don't want user to have to type in virtual directory
0
Using batch script in windows, I am trying to grep the port number (connector port value) from a file (abc.xml) which has the following data:

      Define a non-SSL HTTP/1.1 Connector on port 6080
    <Connector port="6080" protocol="HTTP/1.1"
               port="6080" protocol="HTTP/1.1"
    <!-- Define a SSL HTTP/1.1 Connector on port 6043
    <Connector port="6043" protocol="HTTP/1.1" SSLEnabled="true"

I'd like to store the value (6080) into a variable named port.

Please help me with a batch script. I tried using findstr /i to find the value but the I am unable to get the value.

Any help would be appreciated.

Thanks
Amrith
0
We have recently installed a QNAP NAS Server.  There is also an existing Windows Server on the network.  Problem we are having is that both use similar port addresses which obviously makes remote access to the NAS impossible. Question is what alternative custom ports would be recommend to use for the NAS server.  Here are the ports that the NAS (or should I say the myQNAPCloud services) uses as default:

NAS Web....................................................8080  TCP
Secure NAS Web.......................................443 TCP
Web Server, Multimedia Station ............80 TCP
Secure Web Server...................................8081 TCP
0
Hello,

I have a website that is getting pages indexed twice,  Google webmaster tools is reading both http://www.thinkinsure.ca and http://www.thinkinsure.ca/index.php as 2 separate pages and giving me duplicate content errors

My htaccess file says that can't happen, yet it is.

Also, if I manually type in this URL
http://www.thinkinsure.ca/car-insurance/classic-car/

it won't switch it to https, yet my htacess file says it should

Options +FollowSymLinks 
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ https://www.thinkinsure.ca/$1 [R=301,L]

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

RewriteCond %{HTTP_HOST} ^thinkinsure\.ca
RewriteRule (.*) https://www.thinkinsure.ca/$1 [R=301,L]

Open in new window



I find 100s of ways to write this code online, yet not a single version works consistently . Why is this?

so to summarize.
1. Make it so Google does not read / and index.php as 2 separate pages
2. make sure every request to site is directed to https://www.


Thanks in advance
0
Dear All,

I configured NGINX as reverse proxy on Tomcat web-app. And I want to force download PDF file instead of preview on browser.

This is my NGINX current config

location / {
                add_header              Front-End-Https   on;
                add_header  Cache-Control "public, must-revalidate";
            
                #add_header X-Proxy-Cache $upstream_cache_status;
                proxy_pass  https://127.0.0.1:8080/;

        }

Open in new window


then I added like this

location / {
                add_header              Front-End-Https   on;
                add_header  Cache-Control "public, must-revalidate";
            
                #add_header X-Proxy-Cache $upstream_cache_status;
                proxy_pass  https://127.0.0.1:8080/;

        }

location ~* (.*\.pdf) {
    types { application/octet-stream .pdf; }
    default_type application/octet-stream;
}

Open in new window


This make 404 error.

Do have any suggestion on this?

Thanks!
0
I've been searching online but most of the info I'm finding is not related to PHP on Windows servers.

TL;DR - for PHP on Windows, what versions of PHP supports TLS 1.2 and are there any add'l requirements? (version of openssl?)


What I'm trying to find out is relating to PCI and requirements for web sites to start using only TLS to connect to services like PayPal, Authorize.NET.

Obviously the Windows server itself has to have TLS 1.2 enabled (and the older TLS/SSL disabled) which means Server 2008 R2 and higher,  but I don't know what is required in terms of PHP.

References online also mention OpenSSL that might be a factor for which TLS version is supported. Some articles online say that Windows doesn't have openssl installed by default, but a phpinfo shows me that openssl is being used (SSL Version  OpenSSL/0.9.8y)


I found a test script online that can potentially be used to test TLS, which I was planning to use by testing with each version of PHP installed on the box but I only get a blank page (and if I test from command line, blank result)


<?php
$ch = curl_init('https://www.howsmyssl.com/a/check');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);

$json = json_decode($data);
echo $json->tls_version;

Open in new window




Does anyone have knowledge of this?

Thank you
0
Hi experts,

I have webdav setup on a IIS 7.5 server.  From a web browser on a PC, I can go to http://webdav.castlegar.ca/paperless_meetings and after signing in with a valid username and password then I can browse folders, open docs, etc.  Our elected officials use Branchfire IAnnote on ipads.  It uses a webdav connector.  When I plug in the correct information for the webdav connection then connect, I get "server error 405".  I know that I am entering the webdav information correctly because I can connect to a webdav service running on an older windows 2003 server.  I am trying to migrate the webdav service to a windows 2008 R2 server.  Can you help me? Thanks.
0
Hi guys,

I am trying to wget some software and my PC sits behind a proxy for authentication.  I would like to know if it is possible to NOT manually type my password in the command or /etc/wgetrc file as i would like to hide it.  Can i modify the /etc/wgetrc or /etc/profile to prompt me for the password instead of having it typed in?

If i modify the /etc/wgetrc file with proxy information, including username and password, it will work successfully but i dont like having the password in cleartext for obvious reasons nor do i want to type it at the prompt and have it in my history file.

Does anyone know a way to prompt for a proxy password option?  I am using the below command and get prompted to type the password but i get "authentication failure" when i send the command.

wget --proxy-user --ask-password http://www.whatever.com/file.exe
wget --user --ask-password http://www.whatever.com/file.exe

Your help is apprecaited

Kind Regards,
0
Our customer has an issue.. when the employees are trying to shopping site from within, there is a long wait but www.google.com or internal website can easily be accessed. Please tell how do I go about getting to the root of the issue here? We tried during non congested hours and the result was the same, just to rule out networking issue.

Thanks;
Ravi
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
>