Click here to Skip to main content
15,867,756 members
Everything / HTTP

HTTP

HTTP

Great Reads

by honey the codewitch
Explore an Arduino based IoT web server and UDP multicaster for monitoring a remote water pump
by Michael Haephrati
A simple way for sending WhatsApp messages to an individual or to a group in C++
by Max R McCarty
OWASP's #6 most vulnerable security risk has to do with keeping secrets secret.
by Ivan Yakimov
The article contains comparison of pure HttpClient with RestSharp and Refit.

Latest Articles

by Jason Sultana
Understanding and preventing Newline Injection
by Ivan Yakimov
The article contains comparison of pure HttpClient with RestSharp and Refit.
by ToughDev
How to fix PlatformNotSupportedException when running WCF apps
by Peter Leow
Beginner's Guide to HTTP

All Articles

Sort by Score

HTTP 

5 Nov 2020 by honey the codewitch
Explore an Arduino based IoT web server and UDP multicaster for monitoring a remote water pump
3 Nov 2018 by Michael Haephrati
A simple way for sending WhatsApp messages to an individual or to a group in C++
16 Feb 2016 by Max R McCarty
OWASP's #6 most vulnerable security risk has to do with keeping secrets secret.
1 Nov 2023 by Ivan Yakimov
The article contains comparison of pure HttpClient with RestSharp and Refit.
7 Nov 2018 by Apriorit Inc, gamapat
Take a look at how to intercept HTTP traffic in order to inject custom code into Windows HTML markup
6 Dec 2021 by Michael Sydney Balloni
Interested in easily implementing REST communications in your Windows C++ apps?
3 Apr 2013 by Komin Dmitry
How to write iPhone application to authenticate to SharePoint and read the contents of a list provided by the SharePoint REST API.
22 Nov 2020 by honey the codewitch
Revisiting our WiFi enabled smart clock project with more modern hardware
26 Nov 2020 by honey the codewitch
Efficiently send large amounts of data with a tiny amount of memory
30 Aug 2011 by Espen Harlinn
No, not unless somebody has gone out of their way to make this possible when they set up the web site.Best regardsEspen Harlinn
25 Oct 2011 by Espen Harlinn
It's IE that limits the number of connections to your server:http://blogs.msdn.com/b/ie/archive/2005/04/11/407189.aspx[^]Best regardsEspen Harlinn
3 Jun 2015 by Yvan Rodrigues
Store and retrieve messages in a central repository with SMS using Twilio and ASP.NET.
14 Jan 2016 by Asher Barak, Itiel Beeri
Infrastructure for large scale WCF services layer development
17 Jan 2011 by That's Aragon
Finally after spending 15 hours on this, I finally found the solution. :omg: The issue is my hosting company use a load balancer on their server so the If Not HttpContext.Current.Request.Url.AbsoluteUri.Contains("https://") is never got set to true. So for every request it goes to that...
7 Jun 2011 by Sergey Alexandrovich Kryukov
I noticed your code does not specify HttpWebRequest.Method, with must be "POST", according to your HTTP dump which you're trying to reproduce.[EDIT]Answering a follow-up question:The use of "Expect: 100-continue" is explained in the text of HTTP standard...
29 Dec 2012 by Sergey Alexandrovich Kryukov
One open-source network broadcasting tool I usually advise is VideoLAN: http://en.wikipedia.org/wiki/VideoLAN[^],http://www.videolan.org/[^].Don't be confused: most people use it as a player, but it can do it all: broadcasting, listening to a broadcast, convert, play.Besides, it has...
21 Sep 2015 by Sander Rossel
The last in a series on MEAN web development.
4 Mar 2020 by Łukasz Bownik
The article tries to map a deeper, more generic nature of REST architectural style into HTTP to show protocol deficiencies.
23 Jul 2020 by honey the codewitch
Explore adapting Socket's async model to a task based one and adding some awaitable socket operations to your projects
11 Mar 2024 by Graeme_Grant
There are tools to help you convert raw JSON into C# classes. One of my go-to tools is JSON Utils: Generate C#, VB.Net, SQL Table and Java from JSON[^]. I list more in my articles: >Working with Newtonsoft.Json in C# & VB[^] & Working with...
5 Jan 2011 by Emilio Garavaglia
in a scenario like A--->proxy --------proxy
17 Jan 2011 by Espen Harlinn
It's probably easier to expose required functionality as stdcall c functions using mixed mode c++/cli in a dll, and then use WCF to access the web service.The vendor of the fortran compiler usually include instructions on how to access stdcall c functions from fortran.RegardsEspen Harlinn
22 Feb 2011 by Henry Minute
You do not say which technologies you are using, so it is almost impossible to answer your question in a meaningful way.Here[^] is an elementary tutorial using PHP and MySql. If your needs are different to that then use a search engine to search on something like website login.
22 Feb 2011 by Yusuf
You question is very very scary. Username/password is your first line of defense. If you don't know how to do it, please do not implement it by asking question how you can do it. If your implementation is not safe and secure it may not be much useful.You need to start with understanding your...
20 Apr 2011 by Sergey Alexandrovich Kryukov
This MSDN sample shows how to perform the POST programmatically:http://msdn.microsoft.com/en-us/library/debx8sh9.aspx[^].See also the classes System.Net.HttpWebRequest and System.Net.WebRequest. To use Web request, you need both as run-time type of WebRequest is decided by the static...
12 Jul 2011 by Richard MacCutchan
Of course they are legal; the issue of legality concerns what you are downloading, not how. If it is stolen or copyright property then you are breaking the civil or criminal law (as in your country).
12 Jul 2011 by Sergey Alexandrovich Kryukov
Legally, the way you download the content cannot be limited. If some legal statements try to do it, it's very hard to proof, as you download context anyway, every time you use it, even though the downloaded material is considered to be inaccessible to the user, like in case of streaming media....
28 Jul 2011 by Monjurul Habib
http://blogs.m...
22 Jul 2012 by JF2015
This here is one simple approach. Hopefully it helps:Private Sub button1_Click(sender As Object, e As EventArgs) Dim res As String = textBox1.Text.Replace("http:", "https:") System.Diagnostics.Process.Start(res)End Sub
26 Aug 2012 by hiteshprajpati
Now this problem is solved.By using .Net framework cleanup tool.I have uninstall .net framework 4.0 then re-install it.Also I have read articles for this error each article gives some useful suggestion so it helps a lot to understand the problem and how to solve it....
21 Mar 2013 by enhzflep
As I mentioned in a comment, the way I do it is to call a callback function in the function that reads data from the connection. This callback sends notification to the main window that there is updated download progress available. The main window then displays this information.Here's a...
16 Nov 2013 by Pascal Ganaye
In json you'd pass something like {"id":12, "firstname":"pascal","lastname":"ganaye"}Whereas with a splitter 12|Pascal|GANAYEJson is * easy : you can find a library to write and parse it * standard : it is a documented standard, so people who understand json will...
13 Dec 2013 by idenizeni
Your code has multiple issues. I suggest you read up on screen-scraping and gain a general understanding on how http requests/responses are processed. Also, you should get fiddler(http://fiddler2.com/home[^]), this is a tool that lets you view the communication between the web browser and the...
16 Dec 2013 by Code.Combustion
You'll need to use a web crawler/screen scraper. The act of crawling, scraping and storing the data is completely separate from displaying this on your page.Clarification: You'll need to scrape the page for the data you'd like. It may be worth while to see if the website has an API you can...
22 Dec 2013 by Mohibur Rashid
The input you have provided will be generated by browser. http://localhost:11880/paththe above line means; that your browser will connect with your server with port 11880. So, your server will have to response to port 11880There are four request perform by web server1. GET2....
16 Jan 2014 by bowlturner
(403) Forbiddenhttp://en.wikipedia.org/wiki/HTTP_403[^]The relevant portion: A web server may return a 403 Forbidden HTTP status code in response to a request from a client for a web page or resource to indicate that the server can be reached and understood the request, but refuses to...
30 Apr 2015 by Karthik_Mahalingam
Try like thisHtml: function SendDataToServerUsingAjax() { var poststring = "pass your...
22 Sep 2015 by F-ES Sitecore
You can't hide things from these sniffing tools. If the text is sensitive you would need to encrypt it, but if it's a session id or similar then there isn't a lot you can do to protect it. That's why session hijacking is possible.
28 Oct 2015 by Alexander Iskhakov
Creating a HTTP proxy using Play framework and WS API
4 Jul 2017 by Jochen Arndt
So the code works and the connection is there but you just don't get what you want. That is because you are communicating with the server on the raw HTTP level. The received data will begin with an HTTP response that you have to analyse. If you don't want to do that yourself you have to use a...
23 Mar 2019 by Martin Vorbrodt
XML-RPC
7 Apr 2019 by OriginalGriff
Translating code from one language to another rarely works well, unless they share a common "philosophy" and framework, like VB and C#. But PHP and C# are very, very different: one is an interpreted language, and the other is compiled. They do not share a framework. Converting a (fairly poorly...
6 Jul 2020 by Mircea Neacsu
Make yourself a HTTP server in 20 lines or less
18 Jan 2011 by #realJSOP
Use HttpWebRequest, and you'll get a web page back. At that point, you can parse the html/xml. There are several CodeProject articles that discuss how to do these things. I've written a couple, as have others:CodeProject Article Scraping[^]CodeProject Article Scraper,...
27 Feb 2011 by Gil Fink
My SDP Lecture Interview
20 Apr 2011 by Sugato Pal
1st Application to POST the DATA:using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using System.Net;using System.Text;using System.Xml;namespace PostExample{ public partial class _Default : System.Web.UI.Page { protected void...
28 Jul 2011 by #realJSOP
Try using this:string url = Request.RawUrl;If you want the physical file path:string path = new Uri(Request.RawUrl).Absolute.Path;
12 Aug 2011 by Aniruddha Loya
How to set up Apache 2.2 on MacOS to test websites with self generated certificates in order to verify settings for secure HTTP (HTTPS)
7 Oct 2011 by amove1
It is easy to import and use SOAP webservice with web reference facility in Visual Studio, however setting SOAPAction needs a extra work on webreference libraries specially when using third party Java provided services.
22 Jan 2012 by RDBurmon
1) Create this procedure or modify your SP accordingly-- ==================================-- Alter Stored Procedure Template-- ==================================ALTER PROCEDURE GetURL (@Username Nvarchar(50),@url NVARCHAR(MAX)= NULL OUTPUT)AS SELECT @url= ...
14 Feb 2012 by Varun Sareen
Dear Friend,Please follow this link for your problem:-http://en.wikipedia.org/wiki/HTTP_403[^]Hope this will help you out.Thanks
3 Jun 2012 by taha bahraminezhad Jooneghani
you have to look up for API in your target sites, a web service maybe!then include it in your projects, and then read their documents to config!but if you want just upload file to server use this code snippet:private void SaveTToWeb(){ try { //create WebClient object...
14 Jul 2012 by codiemorgan
When you want your Texture2D resource to download from the Internet
25 Oct 2012 by Marius Bancila
If you're using MFC there are some classes to help you with that.CInternetSession Class[^]CHttpConnection Clas[^]Also seeMFC Classes for Creating Internet Client Applications[^]WinInet Basics [^]
20 Nov 2012 by Jonathan Cardy
The slow death of Bookmarklets
23 Jan 2013 by Jeroen E
I have the following situation:An android app is calling my c# webservice. In the HTTP header there will be a token which I have to check each time my webservice is called in order to validate the identity of the caller.I would like to stress that my webservice is not a WCF service, its...
9 Feb 2013 by Richard MacCutchan
Start with http://www.asp.net/[^], lots of samples and case studies.
9 Feb 2013 by Thomas Daniels
Hi,Try ASP.NET.Here are some tutorials:http://www.asp.net/web-pages/tutorials[^]http://www.w3schools.com/aspnet/default.asp[^]http://asp.net-tutorials.com/[^]
28 Mar 2013 by José Amílcar Casimiro
Hi,Here you have a sample how to configure your proxy manually with credentials.
30 May 2013 by Mahesh Bailwal
As long as WCF service is exposed through http protocol, client can consumed it through http protocol. But if client want to consume WCF service only through https protocol in that case you need SSL.
30 May 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Mahesh is Correct.If you want to explore and know how to enable SSL, then follow the below articles.1. [MSDN] How to: Configure an IIS-hosted WCF service with SSL[^].2. Seven simple steps to enable HTTPS on WCF WsHttp bindings[^].
15 Jun 2013 by David_Wimbley
The reason why this is crapping out is one of your files being uploaded is not there. Either way without seeing more of your code i can't tell you exactly...just that the file itself is not being received. To properly get around the file upload you should do something like...
4 Jul 2013 by Sergey Alexandrovich Kryukov
You problem is simple: how to define a "visitor"?If people are not registered on your site, just visit, they don't identify themselves. They simply send HTTP requests; and the site responds with HTTP response. Even though you can inspect HTTP request's IP and some detail like claimed type of...
22 Jul 2013 by Jason Gleim
So it looks like the issue may be somewhere in the flood of async calls going to the server but it is actually breaking on the client side. This makes me curious and I may write up a test program just to dig into this deeper and maybe write an article about it. There is something going on there...
2 Aug 2013 by Prasad Agarmore
Datacontract channelfactory WCF way of consuming SOAP web services written in C, C++ using gSoap framework on Linux platform
4 Sep 2013 by Gilly Barr
This post will discuss all about HTTP chunked responses
12 Oct 2013 by bjdestiny
Looks like the user account you're using for your app pool doesn't have rights to the web site directory, so it can't read config from there. Check the app pool and see what user it is configured to run as. Check the directory and see if that user has appropriate rights to it. While you're at...
20 Oct 2013 by Ranjan.D
Why not to handle as Exception try{ //HttpWebRequest req = new ...}catch (WebException ex){ }catch (Exception ex){ }
20 Oct 2013 by Ranjan.D
You can also useSystem.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()Returns True if connection available else it will return falseHere's a nice article you can refer Detect Internet Network Availability[^]
20 Oct 2013 by JITHIL P PONNAN
The Error "The remote name could not be resolved: " is indicating that network unavailability.So try this code by disabling network.try{ WebRequest rc = HttpWebRequest.Create("http://www.google.com"); rc.GetResponse(); } catch (WebException ex) ...
22 Oct 2013 by Jocelyne El Khoury
i fixed it :i'm trying to deserialize the JSON string into a Dictionary which should represent an object, but my JSON string contains an array of two objects instead of a single object.So ishould use List(Of Dictionary(Of String, String)) instead of Dictionary(Of String, String):Sub...
5 Dec 2013 by AsthaS
Hi all,I want to create a post request and send it to server using libCURL can anyone help me in that.If this is my sample request/WCS_Capabilities/Capabilityhow am I suppose to set the xml...
8 Dec 2013 by CmMac
I use winhttp api to sendrequest to server,but I income the problem, I got 12044 error, I find the error is ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED. Any one know how to solve it?hConnect = WinHttpConnect(hOpen, L"raw.github.com", INTERNET_DEFAULT_HTTPS_PORT, 0); if (!hConnect)...
10 Dec 2013 by TorstenH.
https://developers.google.com/...
11 Feb 2014 by Zubair Alie
1- You may use CookieContainer to pass Credentials inside. Authenticate user at web-service. If user authenticated then collect information from CookieContainer and return result-setNote: Enable Session on your WebMethods. For Help: may review this link[^]2- Do not use direct (inline)...
24 Apr 2014 by Amogh Natu
This tip explains how to call a web method with a POST request using xml request messaage in C#.
15 May 2014 by Mehdi Gholam
127.0.0.1 is a loopback address for the local machine, you should be using the server machines lan ip address instead on your android device.run cmd.exe on your server and type ipconfig to see what your server's ip address is.
23 May 2014 by Regaloq
Hi i solved the problem.Click here for source
8 Sep 2014 by vr reddy
It looks like you are calling a non static property from a static method. You will need to either make the property static,
5 Nov 2014 by Manas Bhardwaj
Look at the documentation on linkedIn:https://developer.linkedin.com/documents/authentication[^]
24 Nov 2014 by Aescleal
One good thing about being a special purpose HTTP server is that you don't have to process the entire protocol and you can just handle the bits you want and send an error message for just about anything else. While lbcurl can help it's mostly for HTTP clients, not servers so I wouldn't bother...
15 Jul 2015 by Intel
The Intel Edison board has a lot of potential for physical computing. That is why we added full support for the Intel Edison board in Cylon.js, our JavaScript framework for robotics and Internet of Things (IoT) applications.
23 Dec 2015 by Mathi Mani
Hi,In order to access a WebAPI using windows authentication, you have to create a HttpClientHandler and set the credentials in it. Then, this HttpClientHandler object has to be passed to the HttpClient.Please refer my technical tip on this for detailed explanation.Authenticate...
12 Mar 2016 by Serkan Onat
when you use raw sockets to implement a protocolfor HTTP you need to follow the steps belowNote : i will use code parts from the sample link you have provided (without testing myself)first find target end point ,you need an IP address and port (default 80 for HTTP) can also be 8080...
10 Dec 2016 by gfazzola
In this article I will explain the implementation of an infrastructure to host and manage windows services in a practical and interactive way.As a practical example of the solution will be implemented a dynamic ip update client of DucDNS
20 Feb 2018 by m_smith
Ok, thanks for your efforts, guys, I found the solution, i should have removed 'http://' from the URL... that's it :) if anybody is interested, here is the code : int main() { LPCWSTR host = _T("145.239.244.171"); LPCWSTR url = _T("api/get/customers"); HINTERNET hIntOpen =...
25 May 2018 by gptankit
An approach to making better use of cluster error feedback
6 Jun 2019 by OriginalGriff
Probably, yes - but it will cost you! See here: All Registered Domains - WhoIs[^]
16 Sep 2019 by MadMyche
Your XML is invalid; you need to close out the first section group before opening another
27 Oct 2019 by OriginalGriff
The ImageSource.FromUri(Uri) Method (Xamarin.Forms)[^] expects a URI class instance as it's single parameter, not a string. Try this: viewModel.Image = ImageSource.FromUri(new URI(string.Format(...)));
9 Mar 2020 by OriginalGriff
Quote: what I understood was there will be no state stored in the server between any two requests. And that is exactly right: there is no state preserved between requests: a request is complete in itself and does not retain information for later...
7 Nov 2023 by Richard Deeming
IIRC, the X-Powered-By header is added if ASP.NET is installed on the server; it doesn't tell you that the current page was actually generated by ASP.NET. I don't think there's any realy way you can tell from the outside whether this is a...
8 Jan 2024 by OriginalGriff
Here's how I do it: WebClient wc = new WebClient(); outPath = Path.Combine(KnownFolders.Downloads.Path, $"{imageFileName}.{imageFileExtension}"); wc.DownloadFile(imageUrl,...
8 Jan 2024 by Pete O'Hanlon
Just spitballing, but something like this should be possible.private HttpClient httpClient; public async Task DownloadImageAndSaveAsync(string sourceFile, string outputFolder, string outputFileName) { try { using Stream fileStream = await...
3 Mar 2024 by Jason Sultana
Understanding and preventing Newline Injection