15,899,313 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 Sunil Thakur (Top 7 by date)
Sunil Thakur
18-Jan-16 14:09pm
View
Service reference for what purpose?
This is what i have tried for getting Quotes
string requestXml = '<getquotes><item><symbol>IBM<instrumenttype> Equity ';
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://www.trademonster.com/services/quotesService");
request.KeepAlive = false;
request.ProtocolVersion = HttpVersion.Version10;
request.ContentType = "application/xml";
request.Headers.Add("token", token); // This is the value of the token when we logged in.
request.Headers.Add("Set-Cookie", cookie); // cookies while logging in.
request.Method = "POST";
byte[] bytes;
bytes = System.Text.Encoding.UTF8.GetBytes(requestXml.ToString());
request.ContentLength = bytes.Length;
Stream requestStream = request.GetRequestStream();
requestStream.Write(bytes, 0, bytes.Length);
requestStream.Close();
HttpWebResponse response;
response = (HttpWebResponse)request.GetResponse();
if (response.StatusCode == HttpStatusCode.OK) // iam getting ok as response
{
Stream responseStream = response.GetResponseStream();
string responseStr = new StreamReader(responseStream).ReadToEnd(); // Here i am getting response with error user session does not exist
}
Sunil Thakur
18-Jan-16 12:44pm
View
I am using C# to implement that web service in my project.
Sunil Thakur
18-Jan-16 4:21am
View
Thanks Kornfeld,
Yes i do have registered. Iam able to login but unable to use the GetQuotes service. Any help would be appreciated
Sunil Thakur
6-Nov-15 9:07am
View
I have tried that also, i have done these things, add clientid also, but still im unable to get it.
Sunil Thakur
6-Nov-15 8:53am
View
Actually I am trying the to extract audio from url, but it displays error forbidden.
HttpWebRequest fileReq = (HttpWebRequest)HttpWebRequest.Create(url);
HttpWebResponse fileResp = (HttpWebResponse)fileReq.GetResponse();
Sunil Thakur
3-Sep-15 2:27am
View
Actually the problem with uploading in ftp is that, it uploads the first image but when uploading the image 2nd time it throws error 'The operation has timed out.'.My application is windows based (i.e Desktop application).
Sunil Thakur
3-Sep-15 1:22am
View
Thanks for the reply.
Actually i tried to do the same as you have suggested. I upload the image to the ftp server and the image path to the database. But what happens next is that after uploading ist image, it throws error while uploading 2nd image, Request timed out. I have attached the code. Please help me regarding it.
Please help me where I am getting wrong.
Show More