PUT request body variables not passed to testing application

52 views
Skip to first unread message

dsel

unread,
Jul 29, 2012, 10:37:41 AM7/29/12
to rest-...@googlegroups.com
Hi everyone,

I'm using version 2.5 of RESTclient, and I'm having a lot of problems just trying to pass variables to my testing app. Now what I did at first is set Method to PUT, and Body to testing=123, inside my php app I'm using parse_str(file_get_contents('php://input'), $put_vars); to grab variables but its always empty. Latter on I tried experimenting with various headers but issue remained.

Can anyone help me with this issue.
Thx.

Subhash Chandran

unread,
Jul 30, 2012, 5:06:05 AM7/30/12
to rest-...@googlegroups.com
I verified the application, and it is working.

Simple testing procedure:

1. Select PUT
2. Enter Body parameter using the 'Insert Parameters' button--this also sets the correct Content type (x-www-form-urlencoded)
3. From Tools > Start Trace Server @ port 10101. Then: Tools > Insert Trace Server URL.
4. Execute the result: In the response body you will see the parameter being passed.

Subhash.

--
You received this message because you are subscribed to the Google Groups "rest-client" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rest-client/-/EPMVABm1hfQJ.
To post to this group, send email to rest-...@googlegroups.com.
To unsubscribe from this group, send email to rest-client...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rest-client?hl=en.



--
Regards,
Subhash Chandran S

Founder http://FileIt.in/
Reply all
Reply to author
Forward
0 new messages