cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

JSON HTTP 1.1

From: Mau P. <mauricios.8_at_hotmail.com>
Date: Tue, 19 May 2009 13:17:01 -0300

Hello all,

 I'm trying to simulate a JSON data submission.

 I'm trying to post data to a url outside of my server
http://www.remoteurl.com/?&option=send&method=form .

 The data is the following string

/YBeO7OO0txbQJPDlemBs3uOOuH1CgBg6Mm/0cT693AVYKKq+3rDX3e9Oij3G4Am

 The command I'm using is:

 curl -d "/YBeO7OO0txbQJPDlemBs3uOOuH1CgBg6Mm/0cT693AVYKKq+3rDX3e9Oij3G4Am" http://www.remoteurl.com/?&option=send&method=form

 It used to work on my previus machine (wich was 32 bit).
 Now, that curl is running on my 64 bit machine, the remote script (remoteurl.com) is not receiving the data I'm posting to it.

This is what Mozilla HTTP readers shows when I access the webpage I want to simulate the json data submission.

POST /?&option=send&method=form HTTP/1.1
Host: www.remoteurl.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 GTB5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/json; charset=utf-8; charset=utf-8
Referer: http://www.remoteurl.com/refer.html
Content-Length: 68
Cookie: __gads=ID=9aedf2e4a7ef1b2d:T=1236649190:S=ALNI_MYa1Yad7I2bEuF2M2QUb--ZwjFLxA; __qca=1230944277-64752862-21003296; __utma=127001695.718809009.1236649189.1242677838.1242748195.8; __utmz=127001695.1236649196.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=127001695.4.10.1242748195; __utmc=127001695
Pragma: no-cache
Cache-Control: no-cache
["/YBeO7OO0txbQJPDlemBs3uOOuH1CgBg6Mm/0cT693AVYKKq+3rDX3e9Oij3G4Am"]
HTTP/1.x 200 OK
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Tue, 19 May 2009 15:53:19GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 19 May 2009 15:53:19 GMT
Server: Apache

I would appreciate any help.

Thank you,
Maurice

_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-05-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET