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,

I am pretty new to web services as a whole and I'm trying to access and return data from a web service for a data project.

Everytime I send the Web Request I am receiving a 400 Bad Request message, now I am unsure if this is their end or mine. Is there any chance someone can look over this code and tell me if there is anything wrong out of the blue?

I was told to send the following headers in my request:

'Accept', 'Accept-Encoding','Authorization','Content-Length','Date'.

Now to my knowledge I have covered this in my code below yet I still receive a 400 Bad Request.

Dim _auth As String = String.Format("{0}:{1}", "user", "pass")
        Dim _enc As String = Convert.ToBase64String(Encoding.ASCII.GetBytes(_auth))
        Dim _cred As String = String.Format("{0} {1}", "Basic ", _enc)

        Dim getVars As String = "?type=Q&dln0=ABCDYAZ123&ind0=P&pc=BS23+1DE&"

        Dim WebReq As HttpWebRequest = DirectCast(WebRequest.Create(String.Format("https://myurl/this", getVars)), HttpWebRequest)

        'This time, our method is GET.
        WebReq.Method = "GET"
        WebReq.Accept = "application/json"
        WebReq.ContentLength = 0
        WebReq.AutomaticDecompression = DecompressionMethods.None
        WebReq.Headers(HttpRequestHeader.Authorization) = _cred
        WebReq.Date = Date.UtcNow

        'From here on, it's all the same as above.
        Dim WebResp As HttpWebResponse = DirectCast(WebReq.GetResponse(), HttpWebResponse)
        'Let's 

Open in new window

0
Hi There,

I am currently running a number of ad campaigns that I am buying on behalf of a client. To preserve my Intellectual Property, I do not wish to pass on the referrer to their website.

How can I write a page in coldfusion that will not pass on the referrer id or alternatively how can I make sure that I only pass through the  url of our ad server (which is preferable).?

I may want to host this page on our 'ad server' so that all tracking links will be formatted like

http://www.myadserver.com?url=http://www.finaldestinationurl.com

where http://www.myadserver.com is where I will host this page

and http://www.finaldestinationurl.com is where I want to send the visitor.

If I could put the referrer as www.myadserver.com, that would be preferable.
0
Hello,

I'm using Google Chrome as my browser. When I log into my Yahoo account (and on a few other pages), https is enabled.

On the other hand, when I'm trying to sign into my Experts-Exchange account (or my Skype Account), https is crossed out with a red line.

I'm sure this hasn't happened in the past, .... so why can't I now log into EE or Skype with https enabled?

Many thanks

HA
0
Dear All,
Is There any way to compress large form posts  in client side (in java script )before sending them to the server i have already used  
rawdeflate.js
   var filesSelected = document.getElementById("fileUploadName");
        if (filesSelected.files && filesSelected.files[0]) {
            var fileReader = new FileReader();
            var fileToLoad = filesSelected[0];
            $("#inflated").val(Base64.btou(RawDeflate.inflate(Base64.fromBase64(fileToLoad))));
        }

Open in new window

but it give me an error  in base64.js "Uncaught Type Error: Cannot read property 'replace' of undefined"
so any idea what the problem or is there any way to do the require with onther way
thanks
0
Hi

Often our users need to download files from HTTP or HTTPS sites. Can someone tell me if it's more secure to download from HTTPS than HTTP?  If so -

i. What are the benefits of download a file using HTTPS over HTTP?
ii. What attacks/vulnerabilities occur when download a file using HTTP?
iii. If there was no anti-virus on the desktop, could download a file using HTTP constitute a threat?
iv. Is (iii) enough to warrant blocking HTTP downloads?
0
We have a website hosted on thirdparty  hosting provider. We are planning to bring the site to inhouse but leave the admin page there for references.

Example:
website http://abc.com we want to bring in house.
website http://abc.com/admin has to be with hosting provider.

How can we achieve this?
0
Does anybody have a good write-up on what the upgrade to HTTP/2 (with it's by-default HTTPS, compression and caching, always-on single connection) mean in context of Data Loss Prevention and information security considerations in general?

Thanks in advance. Doing some research for general education on the topic and wondering if something publicly available has already been done, so I don't have to reinvent the wheel here.
0
Does the browser always send domain scoped cookie data in the headers with every request?
0
Hello Experts,

I have created an HTTP Server and everything appears to working fine. However, I keep on getting the error message shown in the image whenever I try to access file from the Windows 7 Server - (which I have created as a HTTP Server)

http
However,  the file is there.

Can someone please let me know what I'm doing wrong?

Cheers

Carlton
0
I am writing a ajax jquery to call wcf and have following error in chrome. IE is working fine. how can I fix it in jquery?


The 'Access-Control-Allow-Origin' header has a value

'http://pq.abc.com?divCode=20'

that is not equal to the supplied origin. Origin

'http://pq.abc.com' is therefore not allowed access.
0
EBay File exchange is a system that allows uploading auction information programmatically.

The info to upload goes into a csv file.

The Ebay users manual explains:

•To upload your files programmatically, you must send an HTTP POST request to https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload. This request will enable you to upload your files.

I have attached their example. This code should work:
SampleEbayPostRequestFromManual.txt

My code does not work:
FileExchangeCodeNoteWorking.txt

The code is in an event procedure for Access 2K  Pleas  advise.
0
I have a Windows 2008 R2 VM with IP address 22.23.24.25.
I have an ASP.net web application installed on it.

On the same machine (the VM) :
http://localhost/Web1/login.aspx - does not work
http://22.23.24.25/Web1/login.aspx - does not work

From another machine :
http://22.23.24.25/Web1/login.aspx - does not work

What is the problem (URLs not working on local machine) ?
How can I fix it ?
0
Hello, Experts!  We want to redirect ALL traffic to https://ourdomain.com - whether it's http://ourdomain.com OR http://www.ourdomain.com.  Here is our current .htaccess file, hosted at GoDaddy's WordPress Managed Hosting:

# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^ourdomain\.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security "max-age=300"
</IfModule>
# END GD-SSL

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase //
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . //index.php [L]
</IfModule>
# END WordPress

++++++++++++++++++
So...  can someone tell me which lines to add / modify in order to accomplish our objective?  Thanks so much!! ~ Scott
0
HI All,

We have site on iis 8.5 on windows 2012 R2.  Site is binding with both http and https.
Is there any way we can bind default to https:
eg: if user types www.google.com it has to take default to https://www.google.com
0
We are using GIT with the server based on Windows 2012r2.  We are trying push a file 65KB but has a large number of small text files (~750) included.  When pushing to GIT it returns result=22, HTTP code=414 after about 5 seconds.  We are able to push files much larger but is not a ZIP.

We are new to GIT and not looking to change our platform.  What do we need to massage to get this to work?
0
Sometimes I'll copy a URL and it will contain percent signs and numbers.  Other times it won't  Why is this?
0
With the advent of HTTP/2, the proposed specifications are very exciting. Most exciting of all is the ability for the server to push information out to a web browser without the web browser having to first ask for it. My question is: functions existing PHP to allow us to use the HTTP/2 capabilities? It seems to me, Ajax may no longer be required to perform many functions. Can much of what was previously done with Ajax be done with PHP now? Or will JavaScript be more important than ever because only it can control requests to the server from a user standpoint?
0
Hello Experts,

Can someone let me know if its possible to make Windows 7 operate as a HTTP Server?

Cheers

cpatte7372
0
Hello Experts,

Can someone let me know if its possible for Filezilla to be used as a HTTP Server? (I know its main function is as a FTP Client/Server)

Cheers

Carlton
0
Hi.
Without a web.config file in the folder, when I browse to a file in that folder "http://mywebsite.net/gatewaytest.asmx", everything works.  Of course it is not secure (http).  I can also go to "https://mywebsite.net/gatewaytest.asmx" and I am successful (I get a little lock on the browser bar and the SSL cert properties can be displayed)

I want to create a standard-issue "https redirect" in a web.config file, which appears below.  

I copy the web.config file to that folder.  Then, when I browse to "http://mywebsite.net/gatewaytest.asmx", I believe it should re-write the address as "https" and bounce me to "https://mywebsite.net/gatewaytest.asmx", but I get an error:
 500 - Internal server error.
   There is a problem with the resource you are looking for, and it cannot be displayed


So, is there a problem in my web.config file, or do you think there is a problem elsewhere?
Thanks

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <remove name="Redirect to HTTP" />
                <rule name="Redirect to HTTPS" enabled="true" stopProcessing="true">
                    <match url="(.*)" />
                        <conditions>
                            <add input="{HTTPS}" pattern="^OFF$" />
                        </conditions>
                        <action type="Redirect" url="https://{ToLower:{HTTP_HOST}{REQUEST_URI}}" appendQueryString="false"

Open in new window

0
It was working and now it stop working. All it does is prompt for username/pw.

Webmail works fine and shows the correct certificate, mobile devices and outlook is not working. All it does is prompt for username/pw.
0
Just moved a site to WordPress Managed Hosting today, and getting the following error:

Not Found on Accelerator
Description: Your request on the specified host was not found. Check the location and try again.

The error happens pretty often when using WebPageTest.org, but it's intermittent (also happens to me here on my local computer some of the time.)  No one seems to have any idea what it means.  How 'bout one of you Experts?!?!  (The URL is https://realestateschoolchicago.com/).  Thank you!!  ~ Scott
0
Hi.  
We have just bound an SSL certicate to our new .NET website at a new host --
   Browsing to "http://burnscompany.net" works fine.
   Browsing to "https://burnscompany.net" gives an error.  

Our web developer uses his Visual Studio debugger, and when he browses to "https://burnscompany.net" he sees "Wordpress" errors being returned.   Our old website was in Wordpress, hosted at another webhost.

I checked our "A" records.  There are 3 ( www, @, *) and they point to the proper IP address (which is a load balancer above our two web servers).

Is there some way to see where "https" is pointing, or why it is getting these weird Wordpress errors?

Thanks,
Rob
0
My Synology DS 1513+ came with the Wordpress app which I recently installed. It created a subdirectory under the already existing Web folder named Wordpress.

I created a very basic website to teach myself how to do this and all is well EXCEPT..

To access the website, you must type http://www.mywebsite.com/wordpress. I'd like to drop the need to include the word "wordpress" but haven't figured out how/where to do that. I figure there must be a pointer in there somewhere, but it's not obvious (to me, anyway) how to do this. I want to end up with just typing http://www.mywebsite.com/.

Ideas anyone?
0
We have three XP computers here with legacy apps.  We have three windows 7 computers and 12 Windows 8 computers.  This morning, the Windows XP computers stopped connecting to SOME websites.  The other computers connect just fine.  One such website is www.logmein.com, which is directed to an https site, so at first I thought it was an issue with https, but then found that gmail works OK, and it's an https site.  I've rebooted the router to no avail.  I've connected one of the trouble PCs directly to the modem with no joy, so it's not the router.  I suppose it could be the internet connection, but why are only the XP computers affected?    

On one of the computers,
I've verified that the date and time are correct
I've cleared the internet explorer settings
I reset the SSL state
I reregistered the DLLs as advised by a microsoft document

I don't know what else to do.
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
>