JoeBo747
asked on
Convert web request to HTTPwebRequest
Hi,
I have a web request that I need to convert to .net the web request is currently made via java script and is working successfully the following is taken from chrome developers tools with the database id changed do you now how to convert it.
Request URL:https://api.tiggzi.com/rest/1/db/collections/jobs?where=%7B%22account%22%3A%22systems%22%2C+%22driver%22%3A%22JOE%22%2C+%22complete%22%3A%22false%22%7D/
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1, utf-8;q=0. 7,*;q=0.3
Accept-Encoding:gzip,defla te,sdch
Accept-Language:en-US,en;q =0.8
Connection:keep-alive
DNT:1
Host:api.tiggzi.com
Origin:http://project.tiggzi.com
Referer:http://project.tiggzi.com/view/7cf54281-5407-XXXXXXX-783958ec1f0e/joblist.html
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
X-Tiggzi-Database-Id:57786 655XXXXXXX X
Query String Parametersview URL encoded
where:{"account":"systems" , "driver":"JOE", "complete":"false"}
Response Headersview source
Access-Control-Allow-Origi n:http://project.tiggzi.com
Connection:keep-alive
Content-Type:application/j son
Date:Sat, 05 Jan 2013 15:16:42 GMT
Server:nginx
Set-Cookie:JSESSIONID=gKHf YmM8UlgomP JfgpiIreIB .undefined ; Path=/; Secure
Transfer-Encoding:chunked
I have a web request that I need to convert to .net the web request is currently made via java script and is working successfully the following is taken from chrome developers tools with the database id changed do you now how to convert it.
Request URL:https://api.tiggzi.com/rest/1/db/collections/jobs?where=%7B%22account%22%3A%22systems%22%2C+%22driver%22%3A%22JOE%22%2C+%22complete%22%3A%22false%22%7D/
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1,
Accept-Encoding:gzip,defla
Accept-Language:en-US,en;q
Connection:keep-alive
DNT:1
Host:api.tiggzi.com
Origin:http://project.tiggzi.com
Referer:http://project.tiggzi.com/view/7cf54281-5407-XXXXXXX-783958ec1f0e/joblist.html
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
X-Tiggzi-Database-Id:57786
Query String Parametersview URL encoded
where:{"account":"systems"
Response Headersview source
Access-Control-Allow-Origi
Connection:keep-alive
Content-Type:application/j
Date:Sat, 05 Jan 2013 15:16:42 GMT
Server:nginx
Set-Cookie:JSESSIONID=gKHf
Transfer-Encoding:chunked
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
Joe