Click here to Skip to main content
15,886,840 members
Everything / Request

Request

request

Great Reads

by Kel_
Building a financial stock explorer app using open-source emitter publish/subscribe, Go and Javascript.
by DiponRoy
Set a generated unique id to HttpContext.TraceIdentifier using middleware
by Alexander Parra Lorenzo
example to request a JSON data
by Utku Ozan ÇANKAYA
Basics of improving WCF service quality

Latest Articles

by DiponRoy
Set a generated unique id to HttpContext.TraceIdentifier using middleware
by Utku Ozan ÇANKAYA
Basics of improving WCF service quality
by Right Handed Monkey
Take the stress out of software management using theme based time management
by Kel_
Building a financial stock explorer app using open-source emitter publish/subscribe, Go and Javascript.

All Articles

Sort by Score

Request 

3 Dec 2016 by Kel_
Building a financial stock explorer app using open-source emitter publish/subscribe, Go and Javascript.
28 Apr 2014 by Sergey Alexandrovich Kryukov
Please see my comment to the question. It does not really make sense, because there is no such thing. You cannot simply send some arbitrary request; it content should depend on the metadata defined by the page receiving the request. Besides, it may or may not support one or another HTTP request...
22 Jul 2022 by DiponRoy
Set a generated unique id to HttpContext.TraceIdentifier using middleware
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...
29 Apr 2014 by Sergey Alexandrovich Kryukov
You would need to use SOAP serialization. Please see:http://msdn.microsoft.com/en-us/library/90c86ass%28v=vs.110%29.aspx[^],http://msdn.microsoft.com/en-us/library/system.runtime.serialization.formatters.soap.soapformatter%28v=vs.110%29.aspx[^].However, I don't understand why would you...
22 Aug 2014 by Alexander Parra Lorenzo
example to request a JSON data
28 Aug 2015 by xszaboj
Ok now I see it :).Your problem is that you are making ajax call which is asynchronous operation, that is why there is a callback(OnComplete/OnFail) function that is called after you get your response/error back.So you can't return the values from CallGenerateIDHandler(); because this...
10 May 2017 by Jim Strawn
Have you looked at using JSON Web Tokens? (JWT, also pronounced "JOT".) These are sort of an industry standard for securing API calls. Here's a good short intro: The Anatomy of a JSON Web Token ― Scotch[^]
4 Mar 2019 by OriginalGriff
You can't. It's not a "real" IP address, it's the IP address of the point of contact to the internet, which for a mobile would be up to the phone company to provide and which will probably vary as the phone moves around networks and connects and disconnects. It will also be likely to be shared...
21 Mar 2022 by Chris Copeland
I opened the dev tools in Chrome (Ctrl + Shift + I), took your JSON and in the console tab I tried to JSON.parse() the JSON content you provided and immediately the console told me what the issue was: VM621:1 Uncaught SyntaxError: Unexpected...
28 Jan 2014 by darne hitaro
How does request processing works out from the perspective of a php developer? More than that I'm concerned with e.g. once request is parsed through.htaccess ,mapped to the file and respone is sent back. The mechanism of how this response gets sent back to the client is what I eagerly want to...
6 Feb 2014 by dinesh_redhawk
Hello All,I am facing a problem related to the HttpWebRequest's GetResponse API. In our application we are using HttpWebRequest-Response method to communicate with a device over WiFi.The problem here is when we are sending a particular request to the device, the device takes approx. more...
20 Mar 2014 by Mohammed Saajo
Am having a Location Service which requires a http post message as request. So the server will send the response in a time interval (say every 30 sec) as a xml string. So which method should i use to get it done. In serial communication we have option like onDatareceived event and process the...
31 Mar 2014 by saleem_deek
I'm using asp.net/VB.net in my app.I have a button which onclick I redirect to another page:Response.Redirect("/MyPage.aspx?userName=myUser")and this page has a handler, so in ProcessRequest I use the following method to read userName:Public Sub ProcessRequest(context As HttpContext)...
31 Mar 2014 by ArunRajendra
Use context.Request.Form to access the form variable collection.http://msdn.microsoft.com/en-us/library/system.web.httprequest.form(v=vs.110).aspx[^]
16 Apr 2014 by Michal Zubek
Hello,I have a architectural problem with WCF Services.Current service is able to resolve 1000 request per a day. It's single thread service (multithreading is not possible, because of third part dlls)I have 5 satellites and queuing engine.Daily capacity is around 5k request. Client...
28 Apr 2014 by zjkhhbwj
I only got the .svc link what should i do to call wcf method. HttpWebRequest myWebRequest = (HttpWebRequest)HttpWebRequest.Create("https://test.svc"); String xmlString ="" ASCIIEncoding encoding = new ASCIIEncoding(); byte[]...
28 Apr 2014 by Ravimal Bandara
The best solution is use an HTML parser in client side so you can filter out the message. If it is complex you can simply wrap your message with a tag which is not used in HTML. Check the following example,hello wordnow you can find for the content within the ...
29 Apr 2014 by zjkhhbwj
s:Sendera:FailedAuthenticati...
8 Jul 2014 by Dustin Scott8
How I can send more than 1 AJAX JQuery request to same PHP file.I cant put like this:if(isset($_POST['value'])){}It wont work.But if I write it like this:if(isset($_POST)){}It will work, I want to send more than request. How I can do that?
20 Sep 2014 by Member 11096430
>Hello,I want to know the core technology about how to come true monitor Firefox browser's GET request.I can't understand examples in MDN.Extension is in the browser.please provide some useful information.if someone can help thank you in advance.
12 Nov 2014 by Santiago Fabian
I understand that is not possible to share cookies across totally different domains but if there is another alternative please let me know. My scenario is as following:On my web application there is one page (www.mydomain.com/somepage.aspx). When this page is visited, On Page Load, I do a...
13 Nov 2014 by ashish__shukla
If I understand your scenario correctly you want to store the cookie that comes from one domain in page belonging to another domain.I think cookie is associated with a particular domain.HttpCookie has a property Domain which contains the domain of the cookie.I think you can try to set the...
21 Nov 2014 by Peter Leow
1 Adopt a SDLC[^]2. Learn ASP.Net[^]Good luck!
25 Nov 2014 by Member 10462232
Hy,Who can help me about the token of Google Api V3 Calendar, please ?I configure all parameters of my Google Project but I've some problem to having a token with this code :public UserToken GetUserTokenByCode(string sCode, Credential credential) { UserToken...
12 Jan 2015 by Joshi, Rushikesh
If your DLL is third party DLL and under some usage restriction (trial/free version) then I don't think by creating new Service will help you here. You actually need to implement them on separate servers with same service name and need to implement Load Balancing.But keep in mind that if...
12 Feb 2015 by Member 11446876
hi i have three tables, Stock, InStock, OutStocktables columns: - Stock: IdStock,CodeStock, Date- InStock: Id_InStock, IdStock, mount_InStock- OutStock: Id_OutStock, IdStock, mount_OutStockTable relationship:- Stock 1:N InStock (FK IdStock)- Stock 1:N OutStock (FK...
15 Feb 2015 by Neha Rustagi
Have created a sqlfiddle for same here : http://sqlfiddle.com/#!6/7a99d/11[^]U can check the sql query there. I tried converting same to linq but as I doesn't have DB on my system, so the tried query might have issues with syntax. Here is the linq query formed based on above fiddle.(from...
18 Apr 2015 by Jems_007
Callback URL :curl https://na1.Host.com/services/data/v20.0/sobjects/Account/ -H "Authorization: Bearer token -H "Content-Type: application/json" -d "@newaccount.json" -X PATCH Example request body newaccount.json file{"Name" : "Express Logistics and Transport"}I want to call web...
28 Feb 2015 by Member 11380736
c# VS.When I use WinSpy++ on windows calculators result field, it shows the result in a field called Caption.Is it possible to copy the Caption field from the calculator into a messagebox on my app ?using System;using System.Collections.Generic;using System.ComponentModel;using...
6 Apr 2015 by mayooran99
I executed few requests through POSTMAN but I am always getting this error: { "error": { "code": 404, "message": "Not Found", "errors": [ { "domain": "global", "message": "Not Found", "reason": "notFound" } ] } }these...
16 Apr 2015 by praveen_07
Hi Geeks,I am stuck up with XSRF Security threat fix.Quote:var thisURL = window.location.href;......Quote:this.navigateTarget.location.href = url; The above code snippet is from a method which gets a parameterfrom a user request URL from element href. I am using checkmarx...
1 May 2015 by Member 11656878
I am trying to use a sms gateway app for android called SMSGateway with a http header request using curl as below; $curl_handle=curl_init(); curl_setopt($curl_handle, CURLOPT_URL,"http://182.70.76.188:9090/sendsms?phone=$phone&text=$message1&password=xxxxxxxx"); ...
9 May 2015 by behzad_rainy
I am using Sita Web Services (SWS).SWS is platform independent and is based on the OpenTravel™ Alliance (OTA) XML standards. I had a problem that I encountered the following error when sending data airbook method. Error="053 - NO PAGES" If possible, please advise me well. Thanks This is...
28 Aug 2015 by Lalyka
Himy javascript code gets some info from the serverjavacode:CallGenerateIDHandler();function CallGenerateIDHandler() { $.ajax({ url: "GenerateID.ashx", contentType: "application/json; charset=utf-8", dataType: "json", data: { 'Type': 'ID' },...
15 Nov 2015 by SATHISH kumar
I try to login one website using C# HTTPWebRequest class, i can login but not able to read multiple set-cookies in headerWhen the server responds with multiple "Set-Cookie:"-headers, only the first one becomes available to me in headerWeb Response in HTTPWebRequest Set-Cookie:...
25 Nov 2015 by Venkata Durga Rao
My application is working fine on my system but while deploying on server(having load balancer).After signin into application some pages are open fine after navigating into some time after a while it going to startup.auth.cs and it going to never ending redirects.
17 Dec 2015 by kk2014
Hello,There is a post request coming to my portal and I am fetching IP address from the post request on my portal landing page(INDEX view in MVC) and saving in DB table. below is the code to fetch IP address.string Device_IP = "";if...
29 Mar 2016 by Member 12424249
I have an ajax request which calls a php page(modit.php) that inserts a record into a mysql table. If I run modadjustments with the correct query it works fine and inserts three records. If I run it from the main php page using ajax.request it doesnt.. any cluesmain functionfunction...
20 Apr 2016 by Asmaa Rashad
I am Creating Android App has a Http request as following:.Call API http://MY API/GetMessage.take parameter id as JSON string Post request.Go to another Activity to show the return message.hint URL like that http://MY API/GetMessage?id= ...
24 Apr 2016 by MYQueries1
Hi All,How i can check the request is get or post? I know i can get it from System.Web.HttpContext.Current.Request.HttpMethod But, hacker who has access to "man in the middle" attacks can amend this dataIs there any other solution i can identify it.What I have tried:Hi...
16 Jun 2016 by baotdinh
Hi,I want to skim data from some websites. But with my code, i can get it correctly at 1st time. But when i run again, it still generates body data with 200 code. But the data does not look like as the 1st time i got. I think maybe they block connection. How can i solve it ?What I have...
6 Jul 2016 by Abhijit Parab
I have 2 App servers where I have hosted two websites. both applications are running on different port.Now I want to configure ARR server which will route request to these two APP servers. How can I configure APP servers on ARR with different Port in same server Farm ?For example...
13 Aug 2016 by Member 12564006
I explain my problem as better as I can:I have a program written in 3 modules. I want to save some data from a site (Now I'm using a local host to make tests) to some variables and show some variables' value in the index page in this way:1.- [Script: Text_Variable]
13 Aug 2016 by Member 12564006
I have a script which pretend to create a form in my site and receive the response, let's call it script.py.This script needs to call a function in views.py:opc = newproject.views.Menu_Options(request, ask, Options)This function needs to use request.POST, so needs to receive "request"...
13 Aug 2016 by Member 12564006
please, I need help with that "request" object that is making me despair...I read that theoretically "request" in views is an "HttpRequest" object but I have a script which needs to call a views.py function, which needs to use that "request" so receive it as argument.Then I tried to...
13 Aug 2016 by Member 12564006
I fixed it! I realised that I forgot to pass the "request" parameter when I call my script main funcion. That's why my external script "didn't know" what "request" was.
13 Aug 2016 by Member 12564006
I fixed it! I realised that I forgot to pass the "request" parameter when I call my script main funcion. That's why my external script "didn't know" what "request" was.
13 Aug 2016 by Member 12564006
I fixed it! I realised that I forgot to pass the "request" parameter when I call my script main funcion. That's why my external script "didn't know" what "request" was.
14 Oct 2016 by Member 12793392
I have created a Web service(WCF) using C#. In which, User specifies input parameters in URL, that input parameters stores into (temp.inc) file and it overrides as per the new requests. then XML output generates as per the input given. But when Multiple requests are trying to access web...
14 Oct 2016 by #realJSOP
Change your web service method to accept a GUID as a parameter, and generate a new guid at the client for each request. Then, use the GUID as part of the filename when you're saving your xml data.At that point, all requests will generate a new file just for that request. After that, you're...
10 May 2017 by Member 1097736
I have a scenario where my apigateway is going to be made secure, which is the entry to access all micro services. Right now we use these APIs for web based apps by making server side calls(using C#). we are going to make the APIs public, where mobile apps, other web apps or other services can...
27 Nov 2017 by Member 11558968
we use request() and superagent() method for uploading files from node js to server via url, it cannot upload the file and shows below error, the following code superagent method is: request.post('/upload') .attach('image', path.join(__dirname +'/new.txt') ).end(function(err,...
8 Mar 2018 by Member 13475897
We have written an API webservice using sql lite. It's not deployed on a server so there is no endpoint, etc. How can we call that service with a GET Request from a test pc? What I have tried: We have tried researching the problem, it's a but hard since we dont actually know what to research.
19 Mar 2018 by ItsMelissa
So I've been really curious the past few days.. So when doing a HTTP GET & POST how does the code flow. I kiiiinda get how it works but I would like to dig down and see how it works. And so far I havent found any good blog posts or anything about it. So I guess this is the first part. This is...
11 Jun 2018 by User 13831921
In my application I have a datatable named TB which contains the following columns: BL, PREP, NBLIG, QTY and ERRTYPE. here is an example of data from the table BL PREP NBLIG QTY ERRTYPE 125485 P1 5 125 RNF 189654 P2 12 762 RNF 156985 P2 3 36 FNR 219874 P1 36 5423 OTH...
10 Jun 2018 by Rocky Villalobos Bitos Jr.
You can use DataTable.Compute method. Check this link for more information. DataTable.Compute Method (String, String) (System.Data)[^]
15 Aug 2018 by Member 13950350
Hi, I want make httprequest and get same response, this is my code Dim inStream As StreamReader Dim webRequest As WebRequest Dim webresponse As WebResponse Dim request As HttpWebRequest = webRequest.Create("https:/x.x.x") request.CookieContainer = New CookieContainer request.Credentials =...
4 Mar 2019 by CPallini
Did you try Getting the Client IP via ASP.NET Web API[^]?
27 Oct 2019 by Richard MacCutchan
You need to ask the owners of the website that is rejecting the post request.
23 Nov 2020 by Programmer0001
Following is the python script, I have tried WebRequest, Webclient, HttpWebRequest, HttpClient(handler) in C# with GET and POST method too but nothing seems to be working. Sometimes server returns bad request. I have also tried to enable and...
23 Nov 2020 by Rob Philpott
I obviously can't test it, but something like this: static void Main(string[] args) { HttpClient c = new HttpClient(); c.DefaultRequestHeaders.Clear(); ...
23 Dec 2020 by Parham Moieni
I have a node.js app that uploads images through the code below app.post("/uploadImage", requiresAuth(), (req, res) => { upload(req, res, (err) => { if(err) { console.log(err); }else { console.log(req.file); } }); ...
28 Feb 2022 by Utku Ozan ÇANKAYA
Basics of improving WCF service quality
4 Feb 2021 by Member 14192879
I opened two same pages in different tabs. the URL of the first tab is domainname/Summary.aspx?a=xxxx&b=xxxx1 and for second is domainname/Summary.aspx?a=xxxx&b=xxxx2 when I try to retrieve the current location of the web page. it shows the...
7 May 2021 by gxzs.
I'm trying to make a program that checks username availability on Ubisoft.com. The code I now have should be printing 'available' if the page says "Nothing is broken" and 'taken' if the username is already taken. An example of a taken username...
7 May 2021 by Richard MacCutchan
That is most likely because the returned text always contains the string "Nothing is broken". Examination of the data will confirm.
7 May 2021 by OriginalGriff
Quote: How do I fix that. The only way to do that is to use the debugger (pdb — The Python Debugger — Python 3.9.5 documentation[^]) to look at exactly what you have returned from the site, and check exactly what is happening to that data as...
26 Jul 2021 by stijn de Decker
hi, I am trying to put i a file on a sharepoint drive with MS GRAPH. it works for text files but other files get changed - result file corrupt its with a FMIS program, i only have some sort of lowcode i can use when i check the data of the...
1 Oct 2021 by Gomesz785
I pulled this code from here: Dell API: Warranty Information · GitHub[^] I made some changes: Comment on Dell API: Warranty Information · GitHub So the changed code: #!/usr/bin/env python # Quick script to check your Dell asset's warranty...
30 Sep 2021 by Richard MacCutchan
You are still passing 'main.py' as the svctags parameter. Your code should be using sys.argv[1] like this: if __name__ == '__main__': get_warr_from_dell(sys.argv[1]) sys.exit() And your invocation of the program should be python main.py...
7 Nov 2021 by Brian Antao
I am in the process of developing a Spring Cloud based API Gateway. This Gateway acts like a proxy that filters multiple JSON API requests/responses The gateway has multiple routes that are defined for each JSON API. I have found a way to define...
26 Dec 2021 by Member 15435322
Hi all.I started working as a junior java developer at my workplace. But I am facing some problems. The moment I worked was actually understanding what a back end developer was doing. But I couldn't understand. I finally realized something, that...
3 Apr 2022 by Roman Hoffschmidt
I'm building a tool in Python for which I need to read out error codes for specific devices using the Server-Eye API. Server-Eye is our monitoring solution where all of our devices and the devices of our customers are registered. The...
30 Jun 2022 by Theo 2022
Hello! I'm developing a React app with Nodejs backend and I've come across a problem. The app is for a language centre and it allows a client to log in and click on their profile to see the courses to which they have enrolled. To store the user's...
10 Jul 2022 by Member 11641721
Hello I am a beginner Angular developer I have only one api in the backend and only one get function The get function provides different outputs according to the inputs. Actually my get function is dynamic And output is in json file format I...
1 Oct 2022 by Chem Hub
I have not found any python based solution which I think is kinda odd given that it is broadly used for webscraping on a huge scale. So far all solutions are based on a headless browser which gives terrible performance or are not under...
12 Oct 2022 by Dave Kreskowiak
I don't know Angular at all, but it would appear that you're not telling it which method to call. You're telling it to call the controller, but not the method on it: this.http.post('http://localhost:54111/RegisterController', ... I suspect it...
2 Apr 2023 by Richard MacCutchan
Please use the forum at CodeProject.AI Discussions[^] for questions related to the CodeProject AI system.
25 Mar 2023 by Member 15961636
I made a python script the site uses a get request to display iptv data from action iptv-info.php request with parameters is a connection option the problem is that I can't get the iptv data just an empty file page source of site: ...
25 Mar 2023 by Member 15961636
I made a python script the site uses a get request to display iptv data from action iptv-info.php request with parameters is a connection option the problem is that I can't get the iptv data just an empty file page source of site: ...
10 Jun 2018 by Maciej Los
It's quite simple. All what you need to do is to group data by PREP field. Please, check out below solution: DataTable dt = new DataTable(); dt.Columns.AddRange(new DataColumn[] { new DataColumn("BL", typeof(int)), new DataColumn("PREP", typeof(string)), new DataColumn("NBLIG",...
29 Nov 2013 by Tharaka MTR
How to transfer ownership of the Android application
10 Feb 2014 by darora85
Hello FriendsI have return some code that calls external API. What happens some time my http request gets time out.(not always). I modified my code and handled the TimeOutException in my code. Now I want to test this code.How can test this timeout exception by generating it manually...
8 Jun 2018 by Richard MacCutchan
If this is in a database then you should be able to use SQL COUNT(), AVG() and SUM() Functions[^] See DataTable Class (System.Data)[^].
5 Mar 2019 by F-ES Sitecore
If you'd taken a minute to google you could have found the answer to this very frequently asked question - you can't get the client IP. Or their MAC address in case that is your next question.
8 Mar 2018 by F-ES Sitecore
You'll need to install IIS on that PC (it's an optional component you need to enable via Add Windows Features) and create a site for your service and deploy it to that PC. You can then use it by IP address or the PCs name if other machines on the network know it http://yourIPHere/...
22 Jul 2021 by Right Handed Monkey
Take the stress out of software management using theme based time management
5 Mar 2019 by Santhosh Kumar
HI I have a requirement that I have to get the IP address of the client that requested my c# Web API, for example, if a mobile call my WebAPI , then WebAPI should identify the IP address of the mobile,what i actually want is the IP address of the requested device What I have tried: I have...
11 Jun 2018 by Nachiket G
This could be achieved in multiple ways. However, if you want to save your time, I would recommend the use of time-saving LINQ queries. Here is the function that I have created for you : public static DataTable BuildPrepData(DataTable sourceData) { try { ...
28 Apr 2014 by Member 10678759
Hi i want to make simple request response program in vc++. which is like on my localhost at helloworld.jsp there is output hello world when i send request to hellowworld.jsp it should give me output hello world. i try couple of things but it is also working but it gives me output of whole...
11 Feb 2014 by AnuradhaJayalath
If you can enter your code here..
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 ...
10 Feb 2021 by Member 14891367
Using WebClient helped in solving this problem
28 Apr 2014 by Member 10678759
I want to send simple http request to my localhost:8080/program1.jsp. request should contain a message like "Hello server this is Request" how with vc++ it is possible?
7 Jul 2014 by Jocelyne El Khoury
i have the below code to read the file that is being send from the client Dim strLen As Integer = 0 Dim str As System.IO.Stream strLen = CInt(str.Length) Dim strArray(strLen) As Byte str.Seek(0, SeekOrigin.Begin) str.Read(strArray, 0, strLen) str.Close()if the client...
9 Feb 2015 by smsheethal
Hi,I am trying to extract the data from server . As per API DocumentsTo fetch new regions, use “GetRegionCodesVR1”.This is used to request the full list of region codes on the server. To request, post the text “GetRegionCodesVR1”. No XML is needed to request.I tried using below...
14 Oct 2016 by Keviniano Gayo
You can use lock keyword and use a private static object variable, then inside the lock statement you can process your files.lock Statement[^]
8 Mar 2018 by Keviniano Gayo
You can use ngrok - secure introspectable tunnels to localhost[^] to tunnel request to your localhost.
17 Nov 2020 by Komang Putra
i need help to solve this problem.. i wanna getting last data but it won't take so long here is my code private void getNo() { pDialog = new ProgressDialog(this); showDialog(); ...