Click here to Skip to main content
15,888,286 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 honey the codewitch
Scraping the web is easy with Visual FA. Here's an example of how.
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

All Articles

Sort by Title

HTTP 

3 Apr 2013 by PhadkeGirish
What is a purpose of urls starting with UTTP. (e.g. uttp://abc.com)How the service is handle in IIS server.Is there any improvements server connection pool over http
8 Apr 2019 by AtulSharma609
Hello can anyone help me do this , i do not know PHP and i have to do this in asp.net c# function sign_ipn($reply, $token) { ksort($reply); $flat_reply = ""; foreach ($reply as $key=>$value) { $flat_reply = $flat_reply."$key=$value&"; } $flat_reply =...
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...
8 Apr 2019 by AtulSharma609
private void getResponce() { string requestJson = string.Empty; using (StreamReader reader = new StreamReader(System.Web.HttpContext.Current.Request.InputStream)) { requestJson = reader.ReadToEnd(); string returnUrl =...
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...
23 Jan 2013 by Manish_nautiyal
You will have to create the token derived from soapheader class.public class TokenHeader : System.Web.Services.Protocols.SoapHeader{ public string tokenNo; }in the web service class use public TokenHeader token;[WebMethod] [SoapHeader("token",Required=true)] ...
24 Jan 2013 by Jeroen E
This is what I came up with:namespace TestServiceHttpAuthentication{ public class AuthenticateRequestHttpModule : IHttpModule { private HttpApplication mHttpApp; public void Init(HttpApplication httpApp) { this.mHttpApp =...
9 Dec 2015 by _Q12_
I use this code to be able to read a web page content.I don't know what is doing. All I know is that is working for every website I test it. I have a separate button for this code I provide here, just to initialize something - I presume is the server initialization. After the server...
12 May 2014 by AR547
Hi All,This is really a challenging issue I have ever faced in development.Googled every solution but couldn't find any perfect solution as per my requirement..I have a generic method in a class file RequestTemplate.cs in which HTML Table is being constructed so that this table will be...
28 Nov 2013 by muhammadwaseem
plz refer following link for how to work with html checkboxhttp://stackoverflow.com/questions/8759663/how-to-implement-a-check-box-in-classic-asp[^]and refer following link for how to get value of checkbox from...
4 Nov 2020 by honey the codewitch
Unleash the tiny ESP-01 on your network
7 Jul 2014 by Michael Bergman
Using Windows Communication Foundation to build a simple web server
6 Jul 2015 by phillipvoyle
A sample implementation of a minimal http web server using boost::asio in C++
5 Nov 2020 by honey the codewitch
Explore an Arduino based IoT web server and UDP multicaster for monitoring a remote water pump
N 20 Apr 2024 by honey the codewitch
Scraping the web is easy with Visual FA. Here's an example of how.
30 May 2012 by Murray Brooks Davis
How to make a simple, end-to-end, mobile, Java enterprise application including a RESTful web service and an Android client.
16 Aug 2013 by Sergey Alexandrovich Kryukov
I don't understand what do you want to "query" from a Web site and not able to understand the context of that site, but if you want to retrieve anything from a site, you might need to use the techniques of Web scraping: http://en.wikipedia.org/wiki/Web_scraping[^].Please see my past...
18 Aug 2013 by Rain from Nanjing
thanks for everyone ,I already solve myself question
3 Mar 2021 by Member 14649480
Hi, I have developed a c# dll that makes http reqest using System.Net namespace. If I call the dll methods from an c# programm everything workes fine but i need to use this dll from native c++ code. For this i used COM interop service. All goes...
3 Mar 2021 by OriginalGriff
Firstly,you aren't calling GetResponseAsync in that code. Secondly, half the other stuff we have no idea what exactly they are: JObject, what is returned by your GetResponse call. Thirdly, why are you preparing a byte array version of your...
28 Jun 2011 by Brendon1234
Hi(Just a heads up that I have also posted this on the MSDN WCF Forum: http://social.msdn.microsoft.com/Forums/en/wcf/thread/87a254c8-e9d1-4d4c-8f62-54eae497423f)I will include quite a bit of information in this question. Basically I'm writing a WCF service and separate example .NET and...
5 May 2011 by MBigglesworth79
Access session information via a dynamic object where we use a dynamic property to specify the name of the session item
25 Feb 2011 by alibatfire
I am writing C# Coded UI Tests in Visual Studio 2010. To enhance the testing, I need to access all the responses coming back from the server. For instance, I am testing the Add New Member use case, if user’s attempt to add a new member fails, and the UI doesn't show neither the success or...
27 Feb 2011 by Dave Kreskowiak
You're not going to get that using your Test code when you're running external processes. You'll need to use a tool like Fiddler[^] to grab all the HTTP traffic.
22 Apr 2012 by vaibhavtiwari260
hi friends, I have an aspx page from which i make call to a webhandler(ashx), this webhandler retrieves data in form of list.I want to bind a repeater placed on my ASPX page to this list. This list is on webhandler.Any kind of suggestion would be a great help for...
23 May 2013 by GAJERA
Hi AllI have to major the HTTP traffic via proxy, When I try to upload any image or any files it goes to hang or block. As my observation the StreamReader make it block and it is bind with NetworkStream. while (totalBytesRead
23 May 2013 by Sergey Alexandrovich Kryukov
This is a blocking code indeed, and this blocking is efficient in terms of performance; the thread is put to wait state and will be waken up when data arrives. This is a good thing, not bad. That's why all the communications should be done in a separate thread.—SA
16 Nov 2016 by Sacha Barber
Last time we talked about routing within Akka. This time we will be looking at Akkas support for http.
4 Sep 2013 by Gilly Barr
This post will discuss all about HTTP chunked responses
24 Apr 2013 by sumitk.cadc
I am developing a software in WPF to upload files on amazon cloud. I am able to successfully upload file using httpweb reuqest object. My problem is that when i pause the upload (i have created a pause button) it should be stop uploading at that time, but when i resume the upload, it display the...
22 Nov 2020 by honey the codewitch
Revisiting our WiFi enabled smart clock project with more modern hardware
9 Sep 2014 by miss786
I have created a XML method, and I am trying reference the return from xml string from CreateXML() into the WRequest() method, but I am keep experiencing the following error -- An object reference is required for the non-static field, method, or property 'MailSender.createXMLPub()'. ...
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,
9 Sep 2014 by Chakravarthi Elchuri
1. No overload for method 'createXMLPub' takes 0 argumentsAns: This is your methodpublic static void createXMLPub(string data )you are using the above method like thispostData = createXMLPub();where is your parameter passing in above method so it should be like thispostData =...
9 Nov 2014 by akshaya srinivasan
I have created an one to one chat application using HTTP connection (In this method each and everytime you want to send message, you have to call the webservice and for receive message, you continously need to call the webservice using Timer).Now I want to implement group chat app.Can some one...
9 Nov 2014 by Afzaal Ahmad Zeeshan
First thing that I forced me to answer this question was, you said "continously need to call the webservice using Timer". Why? It is not a good user experience for most of the Android users. I am having an Android mobile phone that has only 128mb Ram and a single core processor and I just don't...
3 Jul 2013 by Florian Rappl
Bringing the DOM to C# with a HTML5/CSS3 parser written in C#.
24 Feb 2016 by dumsky
Demonstrate how to write a simplified AngularJS Loader and Error handling infrastructure
3 Mar 2016 by dumsky
Getting it all together - Controller, Service, $http, caching and more
18 Jan 2021 by Han Bo Sun
Another tutorial on file upload with AngularJS, using FormData for multipart file upload
15 May 2019 by Han Bo Sun
In this tutorial, I am going to discuss how ngResource works. I will demo all 4 HTTP verbs (or methods), and multiple ways request input data can be packaged. It will be a very fun tutorial.
31 Jul 2017 by Alvin Bunk
Apache HTTP server optimization
3 Oct 2016 by Florian Wendel
Every software developer must face the challenge of integrating a plethora of external APIs into their app to increase its value to their users. This can take a lot of time since these APIs are often vastly different. API abstraction promises relief but there are different approaches.
13 Jan 2014 by Mark Briscombe
Hello guys,Been a while since I was last coding, but am wanting to write a simple program in C++ that can access an API. The API is that for a online Bitcoin broker called Bitfinex. The API is documented here:https://www.bitfinex.com/pages/api[^]...and example code for js and Python...
21 Dec 2021 by AzeeM_R
I have http response wrapper that rewrite response and suppose to send response like below {"Version":"1.0.0.0","StatusCode":200,"Message":"Success","Result":[{"code":"465","name":"fasdfsdfsd","systemkey":"AAAAAACL","createdby":"RM ...
7 Dec 2017 by hiteshprajpati
Dear Sir,Recently in one of my website gives error as follows:HTTP Error 503. Service Unavailable.And in IIS 7 application pool is stop automatically for the website.I have restart the pool but when I run the website it goes to stop.I googled it, follow the below steps but could...
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....
25 May 2014 by Christopher Mart
I installed and ran the .NET repair tool from the Microsoft download site and this fixed the problem of the default application pool stopping automatically after many frustrated minutes of trying to find a solution elsewhere on the net.
23 Apr 2015 by jdjbarrios
I have solved it changing in th pool advanced settings the identity due to my password has been expired so i upgraded it to my actual password and it worked again!
22 Feb 2011 by shallin07
How can we apply the USERNAME and PASSWORD security for our website?
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...
13 Apr 2011 by Amit Kumar Tiwari
Try the link http://weblogs.asp.net/pwilson/archive/2004/12/23/331455.aspx[^]This may answer all your questions.
13 Apr 2011 by Nathan Stiles
When using ASP.NET over an SSL connection I can gather information from the Request.ClientCertificate. I want to use this information in future requests to identify a computer. Is this infromation reliable? Does the certificate change frequently? Is this certificate typically generated by...
16 Nov 2018 by Vincent Maverick Durano
A quick tutorial on how to integrate VMD.RESTApiResponseWrapper.Core library into your ASP.NET Core 2.1 REST API application
28 Jul 2011 by Manas Bhardwaj
string errorSourcePage = HttpContext.Current.Request.Url.ToString();
28 Jul 2011 by Monjurul Habib
http://blogs.m...
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;
24 Jul 2012 by robroysd
Hi,I'm working with a mapquest App, and on the client side, i have the following Ajax Request:$.ajax({ url: 'http://www.mapquestapi.com/search/v1/radius', dataType: 'jsonp', crossDomain: true, ...
26 Jul 2012 by robroysd
I did manage to solve this yesterday. It was a mistake on my part. After checking help for data at JQuery.Ajax() calls, found out that data puts/appends all it's contents as Query string, and it Json serializes it if it's not already a string. Regarding mapquest, i checked that they...
12 Nov 2012 by dsagner
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.Parameter name: site] System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +298[HttpException (0x80004005): Specified...
14 Nov 2012 by Christian Graus
This[^] is how to research a question like this with google. Tons of hits there.
5 Aug 2014 by santosh poojari
This article helps you to build and enable robust web applications with respect to various aspects of security that needs to be taken care of while designing a system.
9 Aug 2013 by webdevchris
I am building an API using Web API and integrating dependency injection using Autofac. I have a requirement whereby the controller should use different repositories based on a url parameter. So for example, one repository has business rules for one client system and a second could have a...
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.
18 Jul 2013 by M.R. Inc
HelloI am trying to find the most effective way to program an application I have to make.Here is the scenario:I have a server running ASP.NET C# Web forms application.You can view it live: http://fragems.mrincapps.co.za - please note it may take a little while for initial...
27 Oct 2019 by Jassim Rahma
Hi, I am trying to store image from URL into an image viewmodal but getting: the best overloaded method has some invalid arguments What I have tried: Here is what is m trying: viewModel.Image = ImageSource.FromUri(string.Format("https://www.domain.com/gallery/channels/{0}/{1}.png",...
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(...)));
15 Sep 2016 by Tsuyoshi Matsuzaki
This post describes the basic steps to build your bot using Microsoft Bot Framework 3 REST API.
7 Mar 2012 by AZ Rescuer
I have few issues in decompressing gzipped http response, I separated data part from headers but its gzip header and message contain \0 characters due to which there is problem in copying gzipped data. I've used libcurl but it is relatively slower than C sockets.Here is some part of a...
7 Mar 2012 by AZ Rescuer
Problem solved ! memcpy() was copying \0 chars but eclipse debugger was not showing entire gzip chunk and was breaking at \0. Updated the above code.
7 Feb 2014 by dinesh_redhawk
Hi,I am trying to fetch some data from a device using my application, using a webservice.I am using HttpWebRequest object to get the data from my service... everything works well until the response is received within 60 secs, but when the device takes more than 60 secs to respond then...
13 Feb 2011 by Christopher James Kleinheinz
Hey folks!Is it possible to pass authentication-data to a page which is loaded inside an iframe?Using C# and ASP.NETThx ind adv.Greets
13 Feb 2011 by Sherylee
use session variableshttp://www.google.com/search?q=session+variables&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a[^]
13 Feb 2011 by Ramalinga Koushik
Yes. Use Session Variables as Sherylee said.
18 Jan 2017 by MaikelO1
I use te POSTMAN application to upload a file to an API, now I want to actually do a POST commando in c#, how can I do this in the most efficient way?url "192.168.0.1/api/files"Header key= Authorization, value = "123456"Formdatakey= files, value = key= Info, value =...
18 Jan 2017 by Richard Deeming
Use the MultipartFormDataContent class[^]:using (var form = new MultipartFormDataContent())using (var stream = File.OpenRead(@"Path\To\Your\File.ext"))using (var streamContent = new StreamContent(stream)){ form.Add(streamContent, "files"); form.Add(new...
14 May 2013 by Dustin Prevatt
I have been trying to figure this out for a while now. I have been able to find sample code for console application to post data but i'm completely new to web services. I have a console app that does some calculations and i would like to then send those calculations to a web service. Could some...
14 May 2013 by RaisKazi
Have a look at below links.http://forums.asp.net/t/1056508.aspx/1http://stackoverflow.com/questions/8270464/best-way-to-call-a-json-webservice-from-a-net-consoleAnd many more on Google.
14 May 2013 by Sergey Alexandrovich Kryukov
You cannot get a "simple code" in response to such a vague request. It really depends on the detail of what you want to achieve and your service.However, one thing is obvious: your Web Service application provides some interface to the client application. Your console application is no...
27 Mar 2013 by metastruct
When WebClient, HttpRequest, and all else fail, BITSadmin solves your download woes
24 Jun 2013 by Dustin Prevatt
I am new to web services but basically i have created a webservice that reads from a db and then returns a value back to the client. Here is an example of my webservice.namespace TestWebService1{ /// /// Summary description for Service1 /// ...
24 Jun 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Follow - Calling ASMX from jQuery[^] for a simple example.
5 Dec 2012 by Anselmo santos
I have the following code in C# but it is not working. I am new to the whole C# and parsing thing but I need to get this working. Anyone knows why i am getting:"Object reference not set to an instance of an object."using System.Text;using HtmlAgilityPack;namespace HtmlParser{ ...
5 Dec 2012 by Thomas Daniels
I think there's no HTML-element with your search result as class in your content_wrapper element.
4 Jul 2017 by User 11061201
I'm trying to get a webpage's HTML body and the code just does not seem to work over HTTP. www.google.com works http://www.Blogger.com does not work neither Blogger.com it returns but the info that the page has moved to http... #include #include #include ...
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 Jun 2017 by Adrax /PSHQ/
Hi! I'm trying to get response from a server. At the moment, it returns this: https://pastebin.com/raw/1K8iZT74 However, I don't want the full response with server header. I only wan't the "Hello world!" part to be returned. How do I approach this ? Any ideas ? My Code so far:...
22 Jun 2017 by Richard Deeming
The response headers are part of the HTTP specification. You don't modify the response; instead, you parse it according to the specification. Google has plenty of hits for "C++ parse http response" - for example: tinyhttp - A minimal HTTP response parser[^]
22 Jun 2017 by RickZeeland
Maybe this will clarify the working of HTTP GET: HTTP Made Really Easy[^] You can use this for testing: Hurl.it - Make HTTP requests[^]
23 Jun 2017 by Adrax /PSHQ/
Look. I just need to get simple response without the server header. That's all Im trying to achieve with winsock. It's not about the request. It's about parsing the response correctly (leaving out the server header in my case).
30 Oct 2012 by ajithk444
hi,I need to call a http handler using JQuery in my aspx page on button click. The handler must execute a method when it is called.pls help me how to do this. give me some sample about this. i am new to http handlers and Jquery.pls help me.. The handler must actually generate a pdf report...