15,885,943 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Wiep Corbier (Top 13 by date)
Wiep Corbier
12-Dec-19 7:52am
View
Thanks very much. You made me see the light, and the solution. Instead of a GET I will use a POST (without the actual posting of course)
I POST an object containing the Name and Password.
On the server side I do a query if the Candidate exists and return a response.
Wiep Corbier
27-Nov-17 1:18am
View
I know that in the code it says PostAsync, but I tried DeleteAsync also. I tried many things, it didn't work. That's why I posted the problem here. But. I also posted the solution and i want to leave it by that. Thanks again.
Wiep Corbier
27-Nov-17 0:20am
View
No, in previous code DeleteAsync doesn't work. I'm not stupid.
Wiep Corbier
6-Nov-17 4:21am
View
I have no idea.
I only know that what Im sending is corrupted by something because in some way
[{
"Id": "1000"
}]
is transformed to
[{
Id: "1000"
}]
But lets end this.
I don't get my problem across.
I'm not good in english probably
Sorry, but I'm completely done now. It frustrates me like hell but I know it is me.
Thanks for the effort but...
Don't spend anymore time on this, we speak completly different languages.
Wiep Corbier
6-Nov-17 3:52am
View
My code gives:
StatusCode: 204, ReasonPhrase: 'No Content', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Pragma: no-cache
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 3628800
Access-Control-Allow-Methods: GET,POST,DELETE
Access-Control-Allow-Headers: accept, content-type, x-xtra-token
Vary: User-Agent
Cache-Control: no-store, must-revalidate, no-cache, post-check=0, pre-check=0
Date: Mon, 06 Nov 2017 08:51:05 GMT
Set-Cookie: PHPSESSID=87e3j0f8husifdsrof4oepm5n2; path=/
Server: Apache/2
Content-Type: application/json; charset=utf8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
}
For me it is very simple and I'm no json expert.
I need to get
[{
"Id": "1000"
}]
across and I am not able to do it.
That's all.
Wiep Corbier
6-Nov-17 3:25am
View
It is not about Postman or Fiddler, it is my code that doesn't work.
Wiep Corbier
6-Nov-17 3:19am
View
The guy who made the coce wrote: use it just like you use a post.
ofcourse I also tried DELETE, but it also doesn't work for reasons I mentioned a few times.
Again, in Postman it works fine. Message is as expected. Record deleted.
Lets just stop this topic because it goes nowhere.
I will wait for the guy to return from holiday and ask him to write code that will work for me.
I'm done.
Wiep Corbier
6-Nov-17 3:09am
View
I'm not fighting anything, I just want to understand why this guy has written the "delete" this way and why doesn't my code work.
That is all :-)
Wiep Corbier
6-Nov-17 3:03am
View
That is what I'm trying. :-)
I tried many so;utions and all fail.
That is why I came here. As my last salvation :-)
you asked me: What happens when you send the data? What does the receiving end see?
I don't know, probably nothing. The code is written by someone who isn't able to answer because he is on holiday. Back at the end of this month.
I get 400 or 204
Wiep Corbier
6-Nov-17 2:58am
View
You: What does POSTMAN say then?
Answer: in Postman it works fine.
I don't blame you for anything, I just told you it is ME who can't get a question to be understand.
Wiep Corbier
6-Nov-17 2:50am
View
I'm looking hard to it because I have a problem and I don't understand how to solve it.
I still don't.
btw: I use postman and that is an app similar to Fiddler.
I does exactly the same.
But...maybe someone else has a solution. I understand you don't :-)
My biggest problem is to get people to understand my questions.
It goes like this:
Hi, what is your name?
Answer, well when you go to cityhall and ask the clerk ..he knows the anwer.
Me: huh?
Yeah: or try my dad, or mom , they know.
Me: what?
And so it goed on and on.
Wiep Corbier
6-Nov-17 2:22am
View
Hi, The problem is: with or without the "@"
Second my biggest problem in coding is: get people to understand my question, although I think I explain it in a way people understand it. But no :-)
When I create a string like:
[{
"Id": "1000"
}]
in Visual Studio I can check what this is:
with the TEXT Visualizer it is:
[{"Id": "4"}]
with the XML Visualizer there is:
nothing
in HTML Visualizer there is:
[{"Id": "4"}]
In JSON Visualizer there is:
> [JSON]
> [0]
> Id: "4"
So, the " are gone and it results in 'no delete'. (204)
I can not make it much more clear.
Wiep Corbier
5-Nov-17 17:02pm
View
like this:
string data = @"[{" + "\"" + propertyName + "\"" + ": " + "\"" + @"" + value + "\"}]";
One of the problems to me is the [ and ] in this case.
Maybe I just need completely different code.
BTW: I'm doing .NET and the receiving end is PHP.
They say that api's are made for making life easier, but if everyody does it in a different way, the easy part is gone :-)
Show More