473,394 Members | 1,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Parsing token in HTTP Response body using C#

snehil
19
0 down vote favorite
share [g+] share [fb] share [tw]


I'm sending an HTTP POST request to google Client login and I'm getting this in respons:

SID=DQAAAGgA...7Zg8CTN
LSID=DQAAAGsA...lk8BBbG
Auth=DQAAAGgA...dk3fA5N

I used the below code to read the response:

Expand|Select|Wrap|Line Numbers
  1. Trace.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Now in this response i want to use only the value of Auth token. Can any one please help me on how to extract only that value from the response. Thanx!
Mar 10 '12 #1
0 1802

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: designsimply | last post by:
I am trying to http post some xml to to a remote server using php. When I try to submit xml using PEAR's HTTP_Client::post() to the remote server, I get back the following "Invalid Document Format"...
1
by: Christian Knoblauch | last post by:
Hello, i have a question regarding HTTP request/response using ASP.NET. PROBLEM: My client-application is behind a firewall, so that the server must be reached using HTTP. A started job on...
2
by: | last post by:
Hello All, I am writing a web application that reads a bitmap from a file and outputing it to a HTTP response stream to return the image to the requesting client. The image file is a regular...
3
by: nick.spacek | last post by:
Hi everyone, I'm using some packet sniffing code to grab HTTP packets, and I want to turn the packets into a (preferably) HttpWebResponse. Is there any way to do this, or am I going to have to...
0
by: SimonDev | last post by:
Hi I've got an unusual problem I'm hoping someone could advise me on, regarding the formatting of the body of an HTTP response from a web service. We are using HTTP POST rather than SOAP for...
1
by: pingalkar | last post by:
hi, I want to read time from http response header , using javascript in Hr , Minute and Second form. Pls help with code snipet. thanks & regards, Gajendra
1
by: zort15 | last post by:
I'm trying to get the HTTP Response header out of a WebBrowser control so I can figure out what type of document it is, specifically RSS versus HTML. I tried using WebBrowser.DocumentType, but the...
2
by: boole | last post by:
Hi there, when my ASP page receives the client request, I want to gather the request data (form), promptly end the response to the client (successful) and continue doing what I need to do with the...
5
by: Sachin | last post by:
Hello members, I want to write a http response parser in c. plz help me out...how should i proceed in writing the code... what functions should i use.... Kind regards, Sachin
2
by: neovantage | last post by:
Hi geeks, We made a Java Servlet which takes 3 parameters and upload files from source path to remote path. The three parameters are password, source path and destination path. When we run this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.