This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes How to send ArrayList object in request url in java URL class and get it in php Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to send ArrayList object in request url in java URL class and get it in php" Watch "How to send ArrayList object in request url in java URL class and get it in php" New topic
Author

How to send ArrayList object in request url in java URL class and get it in php

omair bcs
Greenhorn

Joined: Sep 19, 2013
Posts: 1
How to send ArrayList object in request url in java URL class and get it in php
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

You can't send an array list directly. HTTP doesn't have any provisions for it.

What you can do is to send multiple request parameters with the same name, which can be interpreted as an array on the receiving end.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sujeeth Pakala
Ranch Hand

Joined: Mar 24, 2009
Posts: 80
Prepare the arraylist values as XML send as plain string ;-)


Regards, Sujeeth Pakala
SCJP, SCWCD, SCBCD, ICAD, XML Master Basic, Certified SOA Professional
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send ArrayList object in request url in java URL class and get it in php
 
Similar Threads
how to send a post request using ajax
Access my request from my class
Post to Servlet from Applet doesn't work
PHP\Java Bridge
Writing to a URLConnection object