Hi,
I'm trying to read some values from a web page.
I have a program that does that reading ok.
I intalled Fiddler ang catch all the trafic.
Then I try to do the same with NetTalk using the NetDemo app.
1) I can GET the first page like Fiddler shows without problem.
http://www.bolsar.com/VistasDL/PaginaPrincipal.aspxGET
http://www.bolsar.com/VistasDL/PaginaPrincipal.aspx HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Cookie: ASP.NET_SessionId=jtc4p2ebhy01qwa11f4xg23c
It gives a cookie, ok.
2) The next is to send a POST to a webservice :
http://www.bolsar.com/WebServices/AcreditadorWS.asmx/RefreshIn Fiddler it seams not to contain any data, the post is :
POST
http://www.bolsar.com/WebServices/AcreditadorWS.asmx/Refresh HTTP/1.1
Origin:
http://www.bolsar.comUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Content-Type: application/json; charset=UTF-8
Referer:
http://www.bolsar.com/VistasDL/PaginaPrincipal.aspxAccept: */*
Content-Length: 0
Cookie: ASP.NET_SessionId=jtc4p2ebhy01qwa11f4xg23c; ckLng=ESP; __utmt=1; __utma=133838749.1219680072.1430413640.1430413640.1430413640.1; __utmb=133838749.1.10.1430413640; __utmc=133838749; __utmz=133838749.1430413640.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Connection: Keep-Alive
Accept-Encoding: gzip
Accept-Language: es-ES,en,*
Host:
www.bolsar.comThe Response is:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Thu, 30 Apr 2015 17:06:52 GMT
Content-Length: 9
{"d":"0"}
But if I try to POST it from a NetDemo app I allways get a:
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
How can I do it with NetDemo app?
Thanks
pd: Atached goes the Fiddler Session.
[attachment deleted by admin]